]> www.infradead.org Git - users/hch/misc.git/commitdiff
gpiolib: of: Fix the choice for Ingenic NAND quirk
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 2 Apr 2025 12:20:00 +0000 (15:20 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 8 Apr 2025 09:06:33 +0000 (11:06 +0200)
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>
drivers/gpio/gpiolib-of.c

index eb667f8f1ead4f7e8a75804af3253bf4bf3a1ad3..8fff6fdfb4a12ac2d90766190bcfa9e9a5396156 100644 (file)
@@ -193,6 +193,8 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np,
                 */
                { "himax,hx8357",       "gpios-reset",  false },
                { "himax,hx8369",       "gpios-reset",  false },
+#endif
+#if IS_ENABLED(CONFIG_MTD_NAND_JZ4780)
                /*
                 * The rb-gpios semantics was undocumented and qi,lb60 (along with
                 * the ingenic driver) got it wrong. The active state encodes the