drm/tilcdc: Remove tilcdc_crtc_max_width(), use private data
authorJyri Sarha <jsarha@ti.com>
Sat, 10 Oct 2020 17:00:59 +0000 (20:00 +0300)
committerJyri Sarha <jsarha@ti.com>
Sat, 10 Oct 2020 17:02:14 +0000 (20:02 +0300)
commit882bceffa8ca7ac7d504affca5810852a7a0a449
tree83d776f046dc13ff0a901fedc7b7399e37b32301
parentb3a753f54adcd7cea01a427aa971ea4d9e0652ce
drm/tilcdc: Remove tilcdc_crtc_max_width(), use private data

We already have a private data member for maximum display width so
let's use it and get rid of the redundant tilcdc_crtc_max_width().

The LCDC version probing is moved to before reading the device tree
properties so that the version information is available when private
data maximum width is initialized, if "max-width" property is not
found.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/73683d2ce151cffb811a756595b02892eeac3d84.1602349100.git.jsarha@ti.com
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h