drivers: gpio_mchp_xec: 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 <kumar.gala@linaro.org>
This commit is contained in:
parent
af66e1dccd
commit
d91cb6ec7c
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@ static const u32_t valid_ctrl_masks[NUM_MCHP_GPIO_PORTS] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct gpio_xec_data {
|
struct gpio_xec_data {
|
||||||
|
/* gpio_driver_data needs to be first */
|
||||||
|
struct gpio_driver_data common;
|
||||||
/* port ISR callback routine address */
|
/* port ISR callback routine address */
|
||||||
sys_slist_t callbacks;
|
sys_slist_t callbacks;
|
||||||
/* pin callback routine enable flags, by pin number */
|
/* pin callback routine enable flags, by pin number */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue