Skip to content

Commit 2b9c536

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpiolib: of: Fix the choice for Ingenic NAND quirk
The Ingenic NAND quirk has been added under CONFIG_LCD_HX8357 ifdeffery which sounds quite wrong. Fix the choice for Ingenic NAND quirk by wrapping it into own ifdeffery related to the respective driver. Fixes: 3a7fd47 ("mtd: rawnand: ingenic: move the GPIO quirk to gpiolib-of.c") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20250402122058.1517393-2-andriy.shevchenko@linux.intel.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent c5672e3 commit 2b9c536

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpio/gpiolib-of.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np,
193193
*/
194194
{ "himax,hx8357", "gpios-reset", false },
195195
{ "himax,hx8369", "gpios-reset", false },
196+
#endif
197+
#if IS_ENABLED(CONFIG_MTD_NAND_JZ4780)
196198
/*
197199
* The rb-gpios semantics was undocumented and qi,lb60 (along with
198200
* the ingenic driver) got it wrong. The active state encodes the

0 commit comments

Comments
 (0)