drivers: gpio_cmsdk_ahb: 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:34:45 -05:00 committed by Carles Cufí
commit 5a34407daa

View file

@ -34,6 +34,8 @@ struct gpio_cmsdk_ahb_cfg {
};
struct gpio_cmsdk_ahb_dev_data {
/* gpio_driver_data needs to be first */
struct gpio_driver_data common;
/* list of callbacks */
sys_slist_t gpio_cb;
};