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

gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment

The regulator comment in of_gpio_set_polarity_by_property()
made on top of a couple of the cases, while Atmel HSMCI quirk
is not related to that. Make it clear by moving Atmel HSMCI
quirk up out of the scope of the regulator comment.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250402122058.1517393-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Andy Shevchenko and committed by
Bartosz Golaszewski
b8c7a1ac 2b9c5364

+3 -3
+3 -3
drivers/gpio/gpiolib-of.c
··· 268 268 { "fsl,imx8qm-fec", "phy-reset-gpios", "phy-reset-active-high" }, 269 269 { "fsl,s32v234-fec", "phy-reset-gpios", "phy-reset-active-high" }, 270 270 #endif 271 + #if IS_ENABLED(CONFIG_MMC_ATMELMCI) 272 + { "atmel,hsmci", "cd-gpios", "cd-inverted" }, 273 + #endif 271 274 #if IS_ENABLED(CONFIG_PCI_IMX6) 272 275 { "fsl,imx6q-pcie", "reset-gpio", "reset-gpio-active-high" }, 273 276 { "fsl,imx6sx-pcie", "reset-gpio", "reset-gpio-active-high" }, ··· 296 293 #if IS_ENABLED(CONFIG_REGULATOR_GPIO) 297 294 { "regulator-gpio", "enable-gpio", "enable-active-high" }, 298 295 { "regulator-gpio", "enable-gpios", "enable-active-high" }, 299 - #endif 300 - #if IS_ENABLED(CONFIG_MMC_ATMELMCI) 301 - { "atmel,hsmci", "cd-gpios", "cd-inverted" }, 302 296 #endif 303 297 }; 304 298 unsigned int i;