Skip to content

gpio: convert more drivers to using the new value setters

Bartosz Golaszewski linux-gpio lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20250303-gpiochip-set-conversion-736fb6548975

Versions newest first

  1. v2 Latest2 patches 5 repliesApplied
  2. v115 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- drop patches that don't trigger build bot warnings
- rework the gpio-adnp patch: we need to initialize variables modified
within scoped_guard() as it's implemented using a for loop and
triggers warnings due to the compiler thinking we're using variables
that may be uninitialized
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2gpio: adnp: use lock guards for the I2C lockdrivers/gpio/gpio-adnp.c+49 -733 replies
2/2gpio: adnp: use new line value setter callbacksdrivers/gpio/gpio-adnp.c+6 -61 reply

Reviews trailers per patch

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

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

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

Read the v2 thread

Cover letter [PATCH v2 0/2] gpio: convert more drivers to using the new value setters

I don't want to spam people's inboxes so I'm resending just the patches that caused build warnings. The other ones will be picked up from v1.

New variants of set() and set_multiple() callbacks allow drivers to indicate failures back to callers. Convert more GPIO drivers to using them as the old ones are now deprecated.

This series also contains some additional refactoring to the affected drivers wherever it makes the conversion easier.

---
Changes in v2:
- drop patches that don't trigger build bot warnings
- rework the gpio-adnp patch: we need to initialize variables modified
within scoped_guard() as it's implemented using a for loop and
triggers warnings due to the compiler thinking we're using variables
that may be uninitialized
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Bartosz Golaszewski (2):
gpio: adnp: use lock guards for the I2C lock
gpio: adnp: use new line value setter callbacks

 drivers/gpio/gpio-adnp.c | 134 +++++++++++++++++++----------------------------
 1 file changed, 55 insertions(+), 79 deletions(-)

---
base-commit: 7ec162622e66a4ff886f8f28712ea1b13069e1aa
change-id: 20250303-gpiochip-set-conversion-736fb6548975

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>