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:
Kumar Gala 2019-09-20 07:36:21 -05:00 committed by Carles Cufí
commit d91cb6ec7c

View file

@ -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 */