OSDN Git Service

drm/stm: Remove usage of drm_display_mode_to_videomode()
authorMarek Vasut <marex@denx.de>
Mon, 7 Jun 2021 17:24:57 +0000 (19:24 +0200)
committerPhilippe Cornu <philippe.cornu@foss.st.com>
Tue, 8 Jun 2021 16:49:36 +0000 (18:49 +0200)
commite99168f9f08644217d052808dd611dfe43e839cb
tree089631339fe2f08bc85b6ba5af4dc70457831282
parent96b7182d8c4ea2837df28dba6fe431b5c568ea58
drm/stm: Remove usage of drm_display_mode_to_videomode()

There is not much value in the extra conversion step, the calculations
required for the LTDC IP are different than what is used in the
drm_display_mode_to_videomode(), so just do the right ones in the LTDC
driver right away.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Antonio Borneo <antonio.borneo@foss.st.com>
Cc: Benjamin Gaignard <benjamin.gaignard@foss.st.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Philippe Cornu <philippe.cornu@foss.st.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Vincent Abriou <vincent.abriou@foss.st.com>
Cc: Yannick Fertre <yannick.fertre@foss.st.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-stm32@st-md-mailman.stormreply.com
To: dri-devel@lists.freedesktop.org
Tested-by: Yannick Fertré <yannick.fertre@st.com>
Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210607172457.14471-1-marex@denx.de
drivers/gpu/drm/stm/ltdc.c