aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_crtc.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2018-02-13 12:00:34 +0000
committerTomi Valkeinen <[email protected]>2018-03-01 07:18:18 +0000
commitc068408ef386e151e566ab96dd9e3103b264189b (patch)
tree312582124baaa7851e4f78d6c9632755b435e4f9 /drivers/gpu/drm/omapdrm/omap_crtc.c
parentdrm: omapdrm: dsi: Pass the dsi_data pointer to internal functions (diff)
downloadkernel-c068408ef386e151e566ab96dd9e3103b264189b.tar.gz
kernel-c068408ef386e151e566ab96dd9e3103b264189b.zip
drm: omapdrm: dsi: Combine two commonly used inline functions
The dsi_get_dsidrv_data() and dsi_get_dsidev_from_dssdev() inline functions convert a struct omap_dss_device pointer to the corresponding struct platform_device, and a struct platform_device pointer to the corresponding struct dsi_data. They are nearly always called together without any use of the intermediate platform_device, so combine them into a single function. In the three locations where only dsi_get_dsidrv_data() is used, call dev_get_drvdata() directly. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_crtc.c')
0 files changed, 0 insertions, 0 deletions