core.h (9af1e44fb4a4c62a90bff9b095eb001764d91b65) core.h (5d2eaf8090874f8e65388e82f7e91f9cef74885e)
1/*
2 * Core private header for the pin control subsystem
3 *
4 * Copyright (C) 2011 ST-Ericsson SA
5 * Written on behalf of Linaro for ST-Ericsson
6 *
7 * Author: Linus Walleij <linus.walleij@linaro.org>
8 *

--- 45 unchanged lines hidden (view full) ---

54 * subdrivers and shown in debugfs etc
55 */
56struct pin_desc {
57 struct pinctrl_dev *pctldev;
58 const char *name;
59 spinlock_t lock;
60 /* These fields only added when supporting pinmux drivers */
61#ifdef CONFIG_PINMUX
1/*
2 * Core private header for the pin control subsystem
3 *
4 * Copyright (C) 2011 ST-Ericsson SA
5 * Written on behalf of Linaro for ST-Ericsson
6 *
7 * Author: Linus Walleij <linus.walleij@linaro.org>
8 *

--- 45 unchanged lines hidden (view full) ---

54 * subdrivers and shown in debugfs etc
55 */
56struct pin_desc {
57 struct pinctrl_dev *pctldev;
58 const char *name;
59 spinlock_t lock;
60 /* These fields only added when supporting pinmux drivers */
61#ifdef CONFIG_PINMUX
62 bool mux_requested;
63 char mux_function[16];
62 const char *mux_function;
64#endif
65};
66
67struct pinctrl_dev *get_pinctrl_dev_from_dev(struct device *dev,
68 const char *dev_name);
69struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, int pin);
70int pinctrl_get_device_gpio_range(unsigned gpio,
71 struct pinctrl_dev **outdev,
72 struct pinctrl_gpio_range **outrange);
63#endif
64};
65
66struct pinctrl_dev *get_pinctrl_dev_from_dev(struct device *dev,
67 const char *dev_name);
68struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, int pin);
69int pinctrl_get_device_gpio_range(unsigned gpio,
70 struct pinctrl_dev **outdev,
71 struct pinctrl_gpio_range **outrange);