hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/gpio/gpio-tps68470.c
....@@ -91,12 +91,12 @@
9191 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc);
9292 struct regmap *regmap = tps68470_gpio->tps68470_regmap;
9393
94
+ /* Set the initial value */
95
+ tps68470_gpio_set(gc, offset, value);
96
+
9497 /* rest are always outputs */
9598 if (offset >= TPS68470_N_REGULAR_GPIO)
9699 return 0;
97
-
98
- /* Set the initial value */
99
- tps68470_gpio_set(gc, offset, value);
100100
101101 return regmap_update_bits(regmap, TPS68470_GPIO_CTL_REG_A(offset),
102102 TPS68470_GPIO_MODE_MASK,