mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/mxsfb: fix opencoded use of drm_panel_*
Use the drm_panel_get_modes() function. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Marek Vasut <marex@denx.de> Acked-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Cc: Shawn Guo <shawnguo@kernel.org> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Pengutronix Kernel Team <kernel@pengutronix.de> Cc: Fabio Estevam <festevam@gmail.com> Cc: NXP Linux Team <linux-imx@nxp.com> Cc: linux-arm-kernel@lists.infradead.org Link: https://patchwork.freedesktop.org/patch/msgid/20190804201637.1240-8-sam@ravnborg.org
This commit is contained in:
parent
24bc3e9ce6
commit
ce7d93aa2a
@ -30,7 +30,7 @@ static int mxsfb_panel_get_modes(struct drm_connector *connector)
|
||||
drm_connector_to_mxsfb_drm_private(connector);
|
||||
|
||||
if (mxsfb->panel)
|
||||
return mxsfb->panel->funcs->get_modes(mxsfb->panel);
|
||||
return drm_panel_get_modes(mxsfb->panel);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user