From: Dmitry Torokhov Date: Fri, 4 Nov 2022 03:16:34 +0000 (-0700) Subject: fbdev: omapfb: panel-dsi-cm: switch to using gpiod API X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=67c366de0593d00222e2e675e73a59dcf33f2f3a;p=linux.git fbdev: omapfb: panel-dsi-cm: switch to using gpiod API Switch the driver from legacy gpio API that is deprecated to the newer gpiod API that respects line polarities described in ACPI/DT. Note that because existing DTSes specify incorrect polarity of reset lines (active high) and GPU drivers have adopted to this, we follow the suit and use inverted values when controlling reset lines. Signed-off-by: Dmitry Torokhov Signed-off-by: Helge Deller --- diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c index a2c7c5cb15234..4fc4b26a8d304 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c @@ -10,8 +10,9 @@ #include #include +#include #include -#include +#include #include #include #include @@ -20,7 +21,6 @@ #include #include #include -#include #include