diff options
| author | Sherman Yin <syin@broadcom.com> | 2013-12-20 21:13:33 -0500 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2014-01-16 08:25:37 -0500 |
| commit | a30d54218e0306b3b7db7df34fe70d5e86fcbbe2 (patch) | |
| tree | 0229c21951fd875ad16ba49c46026c1d51eb02fa /include/linux | |
| parent | c9dd66b73cc443bfe1fcb5d282034aeb998efd32 (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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pinctrl/pinctrl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h index fefb88663975..cc8e1aff0e28 100644 --- a/include/linux/pinctrl/pinctrl.h +++ b/include/linux/pinctrl/pinctrl.h | |||
| @@ -32,10 +32,12 @@ struct device_node; | |||
| 32 | * pins, pads or other muxable units in this struct | 32 | * pins, pads or other muxable units in this struct |
| 33 | * @number: unique pin number from the global pin number space | 33 | * @number: unique pin number from the global pin number space |
| 34 | * @name: a name for this pin | 34 | * @name: a name for this pin |
| 35 | * @drv_data: driver-defined per-pin data. pinctrl core does not touch this | ||
| 35 | */ | 36 | */ |
| 36 | struct pinctrl_pin_desc { | 37 | struct pinctrl_pin_desc { |
| 37 | unsigned number; | 38 | unsigned number; |
| 38 | const char *name; | 39 | const char *name; |
| 40 | void *drv_data; | ||
| 39 | }; | 41 | }; |
| 40 | 42 | ||
| 41 | /* Convenience macro to define a single named or anonymous pin descriptor */ | 43 | /* Convenience macro to define a single named or anonymous pin descriptor */ |
