Skip to content

Commit 32752f7

Browse files
committed
drivers: gpio_mmio32: 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 96b1e75 commit 32752f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/drivers/gpio/gpio_mmio32.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ struct gpio_mmio32_config {
1717
};
1818

1919
struct gpio_mmio32_context {
20+
/* gpio_driver_data needs to be first */
21+
struct gpio_driver_data common;
2022
const struct gpio_mmio32_config *config;
2123
u32_t invert; /* Mask of 'reg' bits that should be inverted */
2224
};

0 commit comments

Comments
 (0)