Skip to content

Commit 47d3015

Browse files
committed
drivers: gpio_stm32: 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 148984c commit 47d3015

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpio/gpio_stm32.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ struct gpio_stm32_config {
188188
* @brief driver data
189189
*/
190190
struct gpio_stm32_data {
191+
/* gpio_driver_data needs to be first */
192+
struct gpio_driver_data common;
191193
/* Enabled INT pins generating a cb */
192194
u32_t cb_pins;
193195
/* user ISR cb */

0 commit comments

Comments
 (0)