Skip to content

Commit 0876b5a

Browse files
klammtmkartben
authored andcommitted
drivers: gpio: fix SN74HC595 reset GPIO prop name
The reset GPIO for the SN74HC595 driver was not working anymore since c407fbc. That commit made it optional among other changes but accidently removed the s from reset_gpios property name causing the driver not being able to retrieve the specified reset-gpios property from the devicetree anymore. Add the missing s back to fix this. Signed-off-by: Michael Klammt <michael.klammt@automatic-research.de>
1 parent 7cd7f8b commit 0876b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_sn74hc595.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static int gpio_sn74hc595_init(const struct device *dev)
226226
.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(n), \
227227
}, \
228228
.bus = SPI_DT_SPEC_INST_GET(n, SN74HC595_SPI_OPERATION), \
229-
.reset_gpio = GPIO_DT_SPEC_INST_GET_OR(n, reset_gpio, {0}), \
229+
.reset_gpio = GPIO_DT_SPEC_INST_GET_OR(n, reset_gpios, {0}), \
230230
.enable_gpio = GPIO_DT_SPEC_INST_GET_OR(n, enable_gpios, {0}), \
231231
.num_registers = DT_INST_PROP(n, ngpios) / BITS_PER_BYTE, \
232232
}; \

0 commit comments

Comments
 (0)