pinctrl: remove unneeded extern specifiers from consumer.h
The 'extern' specifiers are not needed for function declarations. Remove all of them from the pinctrl/consumer.h header. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
2654521d77
commit
9596ebf87c
@ -25,27 +25,27 @@ struct pinctrl_state;
|
||||
#ifdef CONFIG_PINCTRL
|
||||
|
||||
/* External interface to pin control */
|
||||
extern bool pinctrl_gpio_can_use_line(unsigned gpio);
|
||||
extern int pinctrl_gpio_request(unsigned gpio);
|
||||
extern void pinctrl_gpio_free(unsigned gpio);
|
||||
extern int pinctrl_gpio_direction_input(unsigned gpio);
|
||||
extern int pinctrl_gpio_direction_output(unsigned gpio);
|
||||
extern int pinctrl_gpio_set_config(unsigned gpio, unsigned long config);
|
||||
bool pinctrl_gpio_can_use_line(unsigned gpio);
|
||||
int pinctrl_gpio_request(unsigned gpio);
|
||||
void pinctrl_gpio_free(unsigned gpio);
|
||||
int pinctrl_gpio_direction_input(unsigned gpio);
|
||||
int pinctrl_gpio_direction_output(unsigned gpio);
|
||||
int pinctrl_gpio_set_config(unsigned gpio, unsigned long config);
|
||||
|
||||
extern struct pinctrl * __must_check pinctrl_get(struct device *dev);
|
||||
extern void pinctrl_put(struct pinctrl *p);
|
||||
extern struct pinctrl_state * __must_check pinctrl_lookup_state(struct pinctrl *p,
|
||||
const char *name);
|
||||
extern int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state *s);
|
||||
struct pinctrl * __must_check pinctrl_get(struct device *dev);
|
||||
void pinctrl_put(struct pinctrl *p);
|
||||
struct pinctrl_state * __must_check pinctrl_lookup_state(struct pinctrl *p,
|
||||
const char *name);
|
||||
int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state *s);
|
||||
|
||||
extern struct pinctrl * __must_check devm_pinctrl_get(struct device *dev);
|
||||
extern void devm_pinctrl_put(struct pinctrl *p);
|
||||
extern int pinctrl_select_default_state(struct device *dev);
|
||||
struct pinctrl * __must_check devm_pinctrl_get(struct device *dev);
|
||||
void devm_pinctrl_put(struct pinctrl *p);
|
||||
int pinctrl_select_default_state(struct device *dev);
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
extern int pinctrl_pm_select_default_state(struct device *dev);
|
||||
extern int pinctrl_pm_select_sleep_state(struct device *dev);
|
||||
extern int pinctrl_pm_select_idle_state(struct device *dev);
|
||||
int pinctrl_pm_select_default_state(struct device *dev);
|
||||
int pinctrl_pm_select_sleep_state(struct device *dev);
|
||||
int pinctrl_pm_select_idle_state(struct device *dev);
|
||||
#else
|
||||
static inline int pinctrl_pm_select_default_state(struct device *dev)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user