Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 3a7fd473bd5d ("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>

authored by

Andy Shevchenko and committed by
Bartosz Golaszewski
2b9c5364 c5672e31

+2
+2
drivers/gpio/gpiolib-of.c
··· 193 193 */ 194 194 { "himax,hx8357", "gpios-reset", false }, 195 195 { "himax,hx8369", "gpios-reset", false }, 196 + #endif 197 + #if IS_ENABLED(CONFIG_MTD_NAND_JZ4780) 196 198 /* 197 199 * The rb-gpios semantics was undocumented and qi,lb60 (along with 198 200 * the ingenic driver) got it wrong. The active state encodes the