Skip to content

Commit 94bd244

Browse files
ldewanganglikely
authored andcommitted
gpio: tps65910: Use correct offset for gpio initialization
Using the correct gpio offset for setting the initial value of gpio when setting output direction. Signed-off-by: Laxman Dewangan <[email protected]> Signed-off-by: Grant Likely <[email protected]>
1 parent 265fe02 commit 94bd244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-tps65910.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset,
5252
struct tps65910 *tps65910 = container_of(gc, struct tps65910, gpio);
5353

5454
/* Set the initial value */
55-
tps65910_gpio_set(gc, 0, value);
55+
tps65910_gpio_set(gc, offset, value);
5656

5757
return tps65910_set_bits(tps65910, TPS65910_GPIO0 + offset,
5858
GPIO_CFG_MASK);

0 commit comments

Comments
 (0)