Skip to content

gpio: remove gpiod_toggle_active_low()

Bartosz Golaszewski linux-gpio linux-mips linux-mmc linux-mtd lkml oe-kbuild-all platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5gpiolib: provide gpiod_set_active_[low/high]()drivers/gpio/gpiolib.c include/linux/gpio/consumer.h+36 -00 replies
2/5mtd: rawnand: ingenic: use gpiod_set_active_high()drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c+2 -310 replies
3/5mmc: slot-gpio: use gpiod_set_active_[low|high]()drivers/mmc/core/slot-gpio.c+5 -64 replies
4/5platform/x86: int3472/discrete: use gpiod_set_active_low()drivers/platform/x86/intel/int3472/clk_and_regulator.c drivers/platform/x86/intel/int3472/led.c+2 -21 reply
5/5gpiolib: remove gpiod_toggle_active_low()drivers/gpio/gpiolib.c include/linux/gpio/consumer.h+0 -180 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchPaul CercueilHans de GoedeMiquel Raynal
1/5
2/5A-b A-b
3/5
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] gpio: remove gpiod_toggle_active_low()

From: Bartosz Golaszewski <[email protected]>

The semantics of gpiod_toggle_active_low() are just bad and in almost all cases require users to check the current state anyway. Let's replace it with something clearer and more useful.

For getting this upstream: I'm thinking that I should apply patch 1/5, provide other subsystems with an immutable tag and then we can apply patch 5/5 for the next release once first four are in master.

Bartosz Golaszewski (5):
gpiolib: provide gpiod_set_active_[low/high]()
mtd: rawnand: ingenic: use gpiod_set_active_high()
mmc: slot-gpio: use gpiod_set_active_[low|high]() platform/x86: int3472/discrete: use gpiod_set_active_low()
gpiolib: remove gpiod_toggle_active_low()

 drivers/gpio/gpiolib.c                        | 21 ++++++++++++++-----
 drivers/mmc/core/slot-gpio.c                  | 11 +++++-----
 .../mtd/nand/raw/ingenic/ingenic_nand_drv.c   |  5 ++---
 .../x86/intel/int3472/clk_and_regulator.c     |  2 +-
 drivers/platform/x86/intel/int3472/led.c      |  2 +-
 include/linux/gpio/consumer.h                 | 11 ++++++++--
 6 files changed, 34 insertions(+), 18 deletions(-)
Signature · 1 line
2.39.2