Skip to contentSkip to conversation

backlight: hx8357: Convert to agnostic GPIO API

PATCH Applied Andy Shevchenko 2 participants 2 messages Dec 7, 2023 – Dec 13, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 backlight: hx8357: Convert to agnostic GPIO API

The of_gpio.h is going to be removed. In preparation of that convert the driver to the agnostic API.

Fixes fbbbcd177a27 ("gpiolib: of: add quirk for locating reset lines with legacy bindings")

---
v2: collected tags (Linus, Daniel), added Fixes tag (Linus)

 drivers/gpio/gpiolib-of.c        |  4 +-
 drivers/video/backlight/hx8357.c | 74 ++++++++++----------------------
 2 files changed, 24 insertions(+), 54 deletions(-)
drivers/gpio/gpiolib-of.c +2 -2
index 402f7d99b0c1..e7770eedd146 100644
@@ -184,7 +184,7 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np,
 		const char *propname;
 		bool active_high;
 	} gpios[] = {
-#if !IS_ENABLED(CONFIG_LCD_HX8357)
+#if IS_ENABLED(CONFIG_LCD_HX8357)
 		/*
 		 * Himax LCD controllers used incorrectly named
 		 * "gpios-reset" property and also specified wrong
@@ -478,7 +478,7 @@ static struct gpio_desc *of_find_gpio_rename(struct device_node *np,
 		 */
 		const char *compatible;
 	} gpios[] = {
-#if !IS_ENABLED(CONFIG_LCD_HX8357)
+#if IS_ENABLED(CONFIG_LCD_HX8357)
 		/* Himax LCD controllers used "gpios-reset" */
 		{ "reset",	"gpios-reset",	"himax,hx8357" },
 		{ "reset",	"gpios-reset",	"himax,hx8369" },
drivers/video/backlight/hx8357.c +22 -52

120 lines not on this page · raw message

Signature · 1 line
2.43.0.rc1.1.gbec44491f096
maintainer Applied
#1 lore raw

Re: (subset) [PATCH v2 1/1] backlight: hx8357: Convert to agnostic GPIO API

Quoted 4 lines · Andy Shevchenko

The of_gpio.h is going to be removed. In preparation of that convert the driver to the agnostic API.

Applied, thanks!

[1/1] backlight: hx8357: Convert to agnostic GPIO API

      commit: 7d84a63a39b78443d09f2b4edf7ecb1d586379b4

--
Lee Jones [李琼斯]