Skip to content

gpiolib: Reduce 'gpio' namespace when operate over GPIOd

Andy Shevchenko linux-acpi linux-gpio lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 15 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3gpiolib: Align FLAG_* definitions in the struct gpio_descdrivers/gpio/gpiolib.h+18 -181 reply
2/3gpiolib: Rename gpio_set_debounce_timeout() to gpiod_do_set_debounce()drivers/gpio/gpiolib-acpi.c drivers/gpio/gpiolib.c drivers/gpio/gpiolib.h+5 -510 replies
3/3gpiolib: Rename gpio_do_set_config() --> gpiod_do_set_config()drivers/gpio/gpiolib-cdev.c drivers/gpio/gpiolib.c drivers/gpio/gpiolib.h+5 -53 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLinus Walleij
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/3] gpiolib: Reduce 'gpio' namespace when operate over GPIOd

In order to reduce the 'gpio' namespace when operate over GPIO descriptor rename a couple of functions.

The choice of the name in patch 2 is inspired by the existing gpio_do_set_config() versus gpiod_set_config(). The patch 3 also fixes it to be gpiod_do_set_config(), so we establish two namespaces here:
- gpiod_do_foo() for the internal APIs
- gpiod_foo() for the external APIs
for whatever foo that makes sense.

While at it, the ad-hoc amendment to the FLAG_* definitions to increase readability. No functional changes intended nor made.

Andy Shevchenko (3):
gpiolib: Align FLAG_* definitions in the struct gpio_desc
gpiolib: Rename gpio_set_debounce_timeout() to gpiod_do_set_debounce()
gpiolib: Rename gpio_do_set_config() --> gpiod_do_set_config()

 drivers/gpio/gpiolib-acpi.c |  4 ++--
 drivers/gpio/gpiolib-cdev.c |  2 +-
 drivers/gpio/gpiolib.c      | 10 +++++-----
 drivers/gpio/gpiolib.h      | 40 ++++++++++++++++++-------------------
 4 files changed, 28 insertions(+), 28 deletions(-)
Signature · 1 line
2.47.2