Skip to content

Commit b8c7a1a

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
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>
1 parent 2b9c536 commit b8c7a1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpio/gpiolib-of.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ static void of_gpio_set_polarity_by_property(const struct device_node *np,
268268
{ "fsl,imx8qm-fec", "phy-reset-gpios", "phy-reset-active-high" },
269269
{ "fsl,s32v234-fec", "phy-reset-gpios", "phy-reset-active-high" },
270270
#endif
271+
#if IS_ENABLED(CONFIG_MMC_ATMELMCI)
272+
{ "atmel,hsmci", "cd-gpios", "cd-inverted" },
273+
#endif
271274
#if IS_ENABLED(CONFIG_PCI_IMX6)
272275
{ "fsl,imx6q-pcie", "reset-gpio", "reset-gpio-active-high" },
273276
{ "fsl,imx6sx-pcie", "reset-gpio", "reset-gpio-active-high" },
@@ -293,9 +296,6 @@ static void of_gpio_set_polarity_by_property(const struct device_node *np,
293296
#if IS_ENABLED(CONFIG_REGULATOR_GPIO)
294297
{ "regulator-gpio", "enable-gpio", "enable-active-high" },
295298
{ "regulator-gpio", "enable-gpios", "enable-active-high" },
296-
#endif
297-
#if IS_ENABLED(CONFIG_MMC_ATMELMCI)
298-
{ "atmel,hsmci", "cd-gpios", "cd-inverted" },
299299
#endif
300300
};
301301
unsigned int i;

0 commit comments

Comments
 (0)