From: Sherman Yin Date: Sat, 21 Dec 2013 02:13:33 +0000 (-0800) Subject: pinctrl: Add void * to pinctrl_pin_desc X-Git-Tag: upstream/snapshot3+hdmi~3622^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a30d54218e0306b3b7db7df34fe70d5e86fcbbe2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Reviewed-by: Christian Daudt Reviewed-by: Matt Porter Signed-off-by: Linus Walleij --- diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h index fefb886..cc8e1af 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 */