gpiolib: Reduce 'gpio' namespace when operate over GPIOd
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | gpiolib: Align FLAG_* definitions in the struct gpio_descdrivers/ | +18 | 1 reply | |
| 2/3 | gpiolib: Rename gpio_set_debounce_timeout() to gpiod_do_set_debounce()drivers/ drivers/ drivers/ | +5 | 10 replies | |
| 3/3 | gpiolib: Rename gpio_do_set_config() --> gpiod_do_set_config()drivers/ drivers/ drivers/ | +5 | 3 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Linus Walleij |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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