drm/panel: sitronix-st7789v: avoid hardcoding panel size
authorSebastian Reichel <sre@kernel.org>
Fri, 14 Jul 2023 01:37:46 +0000 (03:37 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 1 Aug 2023 08:29:55 +0000 (10:29 +0200)
commit4098d1867f27de2443c33e116b064ad3082aecb9
treecafbe568e22b80eeeba7b2387f40166b25a22b13
parent9b4454fa2528c617b5986517c9c73e50e30d237d
drm/panel: sitronix-st7789v: avoid hardcoding panel size

Move the panel size information to the mode struct, so
that different panel sizes can be specified depending
on the panel type.

Reviewed-by: Michael Riesch <michael.riesch@wolfvision.net>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230714013756.1546769-10-sre@kernel.org
drivers/gpu/drm/panel/panel-sitronix-st7789v.c