Merge remote-tracking branch 'origin/dev/sumit-linux-3.10.96' into TOT-merge
[linux-3.10.git] / drivers / pinctrl / core.h
index b24ea84..4733273 100644 (file)
@@ -169,12 +169,15 @@ struct pinctrl_maps {
        unsigned num_maps;
 };
 
-struct pinctrl_dev *get_pinctrl_dev_from_devname(const char *dev_name);
-struct pinctrl_dev *get_pinctrl_dev_from_of_node(struct device_node *np);
 int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name);
 const char *pin_get_name(struct pinctrl_dev *pctldev, const unsigned pin);
+int pinctrl_get_pin_id_from_gpio(struct pinctrl_dev *pctldev, unsigned gpio);
+int pinctrl_get_pinctrl_dev_pin_id_from_gpio(unsigned gpio,
+               struct pinctrl_dev **pctl_dev, unsigned *pin_id);
 int pinctrl_get_group_selector(struct pinctrl_dev *pctldev,
                               const char *pin_group);
+int pinctrl_get_group_selector_from_pin(struct pinctrl_dev *pctldev,
+               unsigned int pin);
 
 static inline struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev,
                                            unsigned int pin)