]> Pileus Git - ~andy/linux/commitdiff
pinctrl: Add void * to pinctrl_pin_desc
authorSherman Yin <syin@broadcom.com>
Sat, 21 Dec 2013 02:13:33 +0000 (18:13 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jan 2014 13:25:37 +0000 (14:25 +0100)
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>
include/linux/pinctrl/pinctrl.h

index fefb88663975a363f42d15d05d2787fe7cbea1d7..cc8e1aff0e28cadf524d73c2ffad2301b037b53d 100644 (file)
@@ -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 */