diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2019-07-04 17:38:03 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2019-07-06 20:14:22 +0200 |
commit | f0b40863bee4e5f689f6c839b4d0b512b8f0fdbe (patch) | |
tree | 2f965d9b1fa96b2b2dcac0dbee7ec60124c65264 | |
parent | 5099837d2f809c75d45efa32595c712ca245a432 (diff) |
gpiolib: Use spinlock_t instead of struct spinlock
For spinlocks the type spinlock_t should be used instead of "struct
spinlock".
Use spinlock_t for spinlock's definition.
Cc: [email protected]
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
-rw-r--r-- | drivers/gpio/gpiolib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index 7a65dad43932..7c52c2442173 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -210,7 +210,7 @@ int gpiod_set_array_value_complex(bool raw, bool can_sleep, struct gpio_array *array_info, unsigned long *value_bitmap); -extern struct spinlock gpio_lock; +extern spinlock_t gpio_lock; extern struct list_head gpio_devices; struct gpio_desc { |