mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
gpiolib: define GPIOD_FLAG_SHARED
Define a new GPIO descriptor flag for marking pins that are shared by multiple consumer. This flag will be used in several places so we need to do it in advance and separately from other changes. Reviewed-by: Linus Walleij <[email protected]> Acked-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
This commit is contained in:
1 parent
197b3f3c70
commit
d4340ff75e
1 file changed
+1
@@ -204,6 +204,7 @@ struct gpio_desc {
|
||||
#define GPIOD_FLAG_EDGE_FALLING 17 /* GPIO CDEV detects falling edge events */
|
||||
#define GPIOD_FLAG_EVENT_CLOCK_REALTIME 18 /* GPIO CDEV reports REALTIME timestamps in events */
|
||||
#define GPIOD_FLAG_EVENT_CLOCK_HTE 19 /* GPIO CDEV reports hardware timestamps in events */
|
||||
#define GPIOD_FLAG_SHARED 20 /* GPIO is shared by multiple consumers */
|
||||
|
||||
/* Connection label */
|
||||
struct gpio_desc_label __rcu *label;
|
||||
|
||||
Reference in new issue
Block a user