diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2016-11-28 06:37:23 -0500 |
---|---|---|
committer | Jyri Sarha <jsarha@ti.com> | 2016-11-30 07:20:16 -0500 |
commit | 0186fcce896d3cb6fb690ed8b4405c9c1b76977a (patch) | |
tree | ea0080fc332e97a3c556ca2e4ca1548cbb4c028d | |
parent | 3672583f2525ce8220e0667e20b6a59b29782d80 (diff) |
drm/tilcdc: fix parsing of some DT properties
The DT binding for tildc is not consistent with the driver code: there
are two options - 'max-width' and 'max-pixelclock' specified in the
documentation which are parsed as 'ti,max-width' and
'ti,max-pixelclock' respectively.
Make the driver code consistent with the binding.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 5efb36948249..bd0a3bd07167 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c | |||
@@ -296,12 +296,12 @@ static int tilcdc_init(struct drm_driver *ddrv, struct device *dev) | |||
296 | 296 | ||
297 | DBG("Maximum Bandwidth Value %d", priv->max_bandwidth); | 297 | DBG("Maximum Bandwidth Value %d", priv->max_bandwidth); |
298 | 298 | ||
299 | if (of_property_read_u32(node, "ti,max-width", &priv->max_width)) | 299 | if (of_property_read_u32(node, "max-width", &priv->max_width)) |
300 | priv->max_width = TILCDC_DEFAULT_MAX_WIDTH; | 300 | priv->max_width = TILCDC_DEFAULT_MAX_WIDTH; |
301 | 301 | ||
302 | DBG("Maximum Horizontal Pixel Width Value %dpixels", priv->max_width); | 302 | DBG("Maximum Horizontal Pixel Width Value %dpixels", priv->max_width); |
303 | 303 | ||
304 | if (of_property_read_u32(node, "ti,max-pixelclock", | 304 | if (of_property_read_u32(node, "max-pixelclock", |
305 | &priv->max_pixelclock)) | 305 | &priv->max_pixelclock)) |
306 | priv->max_pixelclock = TILCDC_DEFAULT_MAX_PIXELCLOCK; | 306 | priv->max_pixelclock = TILCDC_DEFAULT_MAX_PIXELCLOCK; |
307 | 307 | ||