From b7d71b6e1f039873e05b2d53f88200757316f931 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Mon, 20 Jul 2020 01:04:07 +0800 Subject: [PATCH] drm/panel: ilitek-ili9881c: prepare for adding support for extra panels There're more panels with ILI9881C controller than the Bananapi one supported by this driver. Extract the mode and init sequence part, to prepare the driver for adding new panels. Signed-off-by: Icenowy Zheng Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20200719170411.275812-2-icenowy@aosc.io --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 56 ++++++++++++++++++--------- 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c index 066ef6c..02ef275 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -20,14 +21,6 @@ #include