Commit ce7d93aa authored by Sam Ravnborg's avatar Sam Ravnborg

drm/mxsfb: fix opencoded use of drm_panel_*

Use the drm_panel_get_modes() function.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Marek Vasut <marex@denx.de>
Acked-by: default avatarStefan Agner <stefan@agner.ch>
Reviewed-by: default avatarEmil 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
parent 24bc3e9c
...@@ -30,7 +30,7 @@ static int mxsfb_panel_get_modes(struct drm_connector *connector) ...@@ -30,7 +30,7 @@ static int mxsfb_panel_get_modes(struct drm_connector *connector)
drm_connector_to_mxsfb_drm_private(connector); drm_connector_to_mxsfb_drm_private(connector);
if (mxsfb->panel) if (mxsfb->panel)
return mxsfb->panel->funcs->get_modes(mxsfb->panel); return drm_panel_get_modes(mxsfb->panel);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment