Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a30d5421 authored by Sherman Yin's avatar Sherman Yin Committed by Linus Walleij
Browse files

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: default avatarSherman Yin <syin@broadcom.com>
Reviewed-by: default avatarChristian Daudt <bcm@fixthebug.org>
Reviewed-by: default avatarMatt Porter <matt.porter@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c9dd66b7
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -32,10 +32,12 @@ struct device_node;
 * pins, pads or other muxable units in this struct
 * pins, pads or other muxable units in this struct
 * @number: unique pin number from the global pin number space
 * @number: unique pin number from the global pin number space
 * @name: a name for this pin
 * @name: a name for this pin
 * @drv_data: driver-defined per-pin data. pinctrl core does not touch this
 */
 */
struct pinctrl_pin_desc {
struct pinctrl_pin_desc {
	unsigned number;
	unsigned number;
	const char *name;
	const char *name;
	void *drv_data;
};
};


/* Convenience macro to define a single named or anonymous pin descriptor */
/* Convenience macro to define a single named or anonymous pin descriptor */