Skip to content

Commit 4d4bc67

Browse files
Simon FrankMaureenHelm
authored andcommitted
gpio: mcp23s17: use gpio_driver_data not config
fix incorrect gpio driver struct used in driver data. This should not have caused any issue as currently sizeof(gpio_driver_data) == sizeof(gpio_driver_config). Signed-off-by: Simon Frank <[email protected]>
1 parent b06eb27 commit 4d4bc67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio_mcp23s17.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extern "C" {
4747

4848
/** Configuration data */
4949
struct mcp23s17_config {
50-
/* gpio_driver_data needs to be first */
50+
/* gpio_driver_config needs to be first */
5151
struct gpio_driver_config common;
5252

5353
struct spi_dt_spec bus;
@@ -56,7 +56,7 @@ struct mcp23s17_config {
5656
/** Runtime driver data */
5757
struct mcp23s17_drv_data {
5858
/* gpio_driver_data needs to be first */
59-
struct gpio_driver_config data;
59+
struct gpio_driver_data data;
6060

6161
struct k_sem lock;
6262

0 commit comments

Comments
 (0)