Skip to content

Commit 96b1e75

Browse files
committed
drivers: gpio_sx1509b: Add gpio_driver_data to driver data
Add gpio_driver_data as the first element in the driver data as the gpio core expects this. Signed-off-by: Kumar Gala <[email protected]>
1 parent 47d3015 commit 96b1e75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpio/gpio_sx1509b.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ struct gpio_sx1509b_pin_state {
3333

3434
/** Runtime driver data */
3535
struct gpio_sx1509b_drv_data {
36+
/* gpio_driver_data needs to be first */
37+
struct gpio_driver_data common;
3638
struct device *i2c_master;
3739
struct gpio_sx1509b_pin_state pin_state;
3840
struct k_sem lock;

0 commit comments

Comments
 (0)