drm/panel: sitronix-st7789v: avoid hardcoding polarity info
authorSebastian Reichel <sre@kernel.org>
Fri, 14 Jul 2023 01:37:49 +0000 (03:37 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 1 Aug 2023 08:29:57 +0000 (10:29 +0200)
commite4572f99f8a7dfd8a081c9135943ab82abe6f692
tree94854fdb42f718e97793b7206a986e94b1ca6ff6
parent7a6288726cf6bc0fa1bca0f24922a06425b84bf1
drm/panel: sitronix-st7789v: avoid hardcoding polarity info

Add polarity information via mode and bus flags, so that they are no
longer hardcoded and forward the information to the DRM stack. This is
required for adding panels with different settings.

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