aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSherman Yin <syin@broadcom.com>2013-12-20 18:13:33 -0800
committerMark Brown <broonie@linaro.org>2014-04-04 16:18:38 +0100
commit65b606f92c3e26af787fa9fcd16a1da28429798a (patch)
tree9764e38f7b0e73467d504950dc10c9ae548eae77
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff)
pinctrl: Add void * to pinctrl_pin_desc
drv_data is added to the pinctrl_pin_desc for drivers to define additional driver-specific per-pin data. Signed-off-by: Sherman Yin <syin@broadcom.com> Reviewed-by: Christian Daudt <bcm@fixthebug.org> Reviewed-by: Matt Porter <matt.porter@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit a30d54218e0306b3b7db7df34fe70d5e86fcbbe2) Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--include/linux/pinctrl/pinctrl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h
index 2c2a9e8d8578..9adb1067af71 100644
--- a/include/linux/pinctrl/pinctrl.h
+++ b/include/linux/pinctrl/pinctrl.h
@@ -32,10 +32,12 @@ struct device_node;
* pins, pads or other muxable units in this struct
* @number: unique pin number from the global pin number space
* @name: a name for this pin
+ * @drv_data: driver-defined per-pin data. pinctrl core does not touch this
*/
struct pinctrl_pin_desc {
unsigned number;
const char *name;
+ void *drv_data;
};
/* Convenience macro to define a single named or anonymous pin descriptor */