drm/panel: sitronix-st7789v: avoid hardcoding mode info
authorSebastian Reichel <sre@kernel.org>
Fri, 14 Jul 2023 01:37:45 +0000 (03:37 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 1 Aug 2023 08:29:55 +0000 (10:29 +0200)
commit9b4454fa2528c617b5986517c9c73e50e30d237d
treea2b6ebd5eacd6bde0f7d59a99347f44be512ee61
parentbc2aa99b2306bc9d91586bc9187bfef4e61d3882
drm/panel: sitronix-st7789v: avoid hardcoding mode info

Avoid hard-coding the default_mode and supply it from match data. One
additional layer of abstraction has been introduced, which will be
needed for specifying other panel information (e.g. bus flags) in the
next steps.

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-9-sre@kernel.org
drivers/gpu/drm/panel/panel-sitronix-st7789v.c