--- zzzz-none-000/linux-3.10.107/include/linux/pinctrl/devinfo.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/linux/pinctrl/devinfo.h 2021-02-04 17:41:59.000000000 +0000 @@ -24,13 +24,22 @@ * struct dev_pin_info - pin state container for devices * @p: pinctrl handle for the containing device * @default_state: the default state for the handle, if found + * @init_state: the state at probe time, if found + * @sleep_state: the state at suspend time, if found + * @idle_state: the state at idle (runtime suspend) time, if found */ struct dev_pin_info { struct pinctrl *p; struct pinctrl_state *default_state; + struct pinctrl_state *init_state; +#ifdef CONFIG_PM + struct pinctrl_state *sleep_state; + struct pinctrl_state *idle_state; +#endif }; extern int pinctrl_bind_pins(struct device *dev); +extern int pinctrl_init_done(struct device *dev); #else @@ -40,6 +49,11 @@ { return 0; } + +static inline int pinctrl_init_done(struct device *dev) +{ + return 0; +} #endif /* CONFIG_PINCTRL */ #endif /* PINCTRL_DEVINFO_H */