backlight: hx8357: Convert to agnostic GPIO API
Subsystems (3)
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.
Reviewed-by Daniel Thompson <[email protected]>
Fixes fbbbcd177a27 ("gpiolib: of: add quirk for locating reset lines with legacy bindings")
Reviewed-by Linus Walleij <[email protected]>
Signed-off-by Andy Shevchenko <[email protected]>
---
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
@@ -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
Re: (subset) [PATCH v2 1/1] backlight: hx8357: Convert to agnostic GPIO API
Quoted 4 lines · Andy Shevchenko
The
of_gpio.his 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 [李琼斯]