Skip to content

Commit a30d542

Browse files
shermanyinLinus Walleij
authored andcommitted
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>
1 parent c9dd66b commit a30d542

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/linux/pinctrl/pinctrl.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ struct device_node;
3232
* pins, pads or other muxable units in this struct
3333
* @number: unique pin number from the global pin number space
3434
* @name: a name for this pin
35+
* @drv_data: driver-defined per-pin data. pinctrl core does not touch this
3536
*/
3637
struct pinctrl_pin_desc {
3738
unsigned number;
3839
const char *name;
40+
void *drv_data;
3941
};
4042

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

0 commit comments

Comments
 (0)