Skip to content

gpio: a few cleanup patches

Alexandre Courbot linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5gpio: remove export of private of_get_named_gpio_flags()drivers/gpio/gpiolib-of.c+0 -11 reply
2/5gpio: simplify gpiochip_export()drivers/gpio/gpiolib-sysfs.c+9 -111 reply
3/5gpio: make gpiochip_get_desc() gpiolib-privatedrivers/gpio/gpiolib-of.c drivers/gpio/gpiolib.c drivers/gpio/gpiolib.h +1 more+3 -57 replies
4/5gpio: remove gpiod_lock/unlock_as_irq()Documentation/gpio/driver.txt drivers/gpio/gpiolib-acpi.c drivers/gpio/gpiolib-legacy.c +4 more+25 -381 reply
5/5gpio: move gpio_ensure_requested() into legacy C filedrivers/gpio/gpiolib-legacy.c drivers/gpio/gpiolib.c include/asm-generic/gpio.h+113 -1372 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] gpio: a few cleanup patches

Still in order to prepare for the ability to share one GPIO between several consumers, this series of mostly unrelated patches fixes a few minor issues. Most of the patches should be no-brainers ; maybe patch 2 should be looked more closely in order to understand why this code was there in the first place. Patch 4 is not only a simplification of the API, but a hard requirement if we are to allow several GPIO descriptors to manipulate the same GPIO, as no driver function should require a descriptor to perform properly.

This series has been tested on Raspberry Pi and Jetson TK1 without any problem being noticed.

Alexandre Courbot (5):
gpio: remove export of private of_get_named_gpio_flags()
gpio: simplify gpiochip_export()
gpio: make gpiochip_get_desc() gpiolib-private
gpio: remove gpiod_lock/unlock_as_irq()
gpio: move gpio_ensure_requested() into legacy C file

 Documentation/gpio/driver.txt |   4 +-
 drivers/gpio/gpiolib-acpi.c   |   6 +-
 drivers/gpio/gpiolib-legacy.c | 106 ++++++++++++++++++++++++++--
 drivers/gpio/gpiolib-of.c     |   3 +-
 drivers/gpio/gpiolib-sysfs.c  |  24 +++----
 drivers/gpio/gpiolib.c        | 160 ++++++------------------------------------
 drivers/gpio/gpiolib.h        |   2 +
 include/asm-generic/gpio.h    |  18 +----
 include/linux/gpio/driver.h   |   7 +-
 9 files changed, 144 insertions(+), 186 deletions(-)
Signature · 1 line
2.0.1