[PATCH 00/19] gpio: use new GPIO line value setter callbacks in remaining drivers

Bartosz Golaszewski posted 19 patches 3 months ago
There is a newer version of this series
drivers/gpio/gpio-vx855.c          |  9 +++++----
drivers/gpio/gpio-wcd934x.c        | 16 ++++++++++------
drivers/gpio/gpio-wcove.c          | 12 ++++++------
drivers/gpio/gpio-winbond.c        | 16 ++++++++++------
drivers/gpio/gpio-wm831x.c         | 13 ++++++-------
drivers/gpio/gpio-wm8350.c         | 15 +++++++--------
drivers/gpio/gpio-wm8994.c         |  8 +++++---
drivers/gpio/gpio-xgene.c          |  6 ++++--
drivers/gpio/gpio-xilinx.c         |  6 ++++--
drivers/gpio/gpio-xlp.c            | 10 ++++------
drivers/gpio/gpio-xra1403.c        | 13 +++++--------
drivers/gpio/gpio-xtensa.c         | 13 ++++---------
drivers/gpio/gpio-zevio.c          |  6 ++++--
drivers/gpio/gpio-zynq.c           |  8 +++++---
drivers/gpio/gpio-zynqmp-modepin.c | 10 ++++++----
15 files changed, 85 insertions(+), 76 deletions(-)
[PATCH 00/19] gpio: use new GPIO line value setter callbacks in remaining drivers
Posted by Bartosz Golaszewski 3 months ago
Alright, there are a few left so let's get this done.

Commit 98ce1eb1fd87e ("gpiolib: introduce gpio_chip setters that return
values") added new line setter callbacks to struct gpio_chip. They allow
to indicate failures to callers. We're in the process of converting all
GPIO controllers to using them before removing the old ones. This series
converts the remaining GPIO drivers.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (19):
      gpio: vx855: use new GPIO line value setter callbacks
      gpio: wcd934x: check the return value of regmap_update_bits()
      gpio: wcd934x: use new GPIO line value setter callbacks
      gpio: wcove: use new GPIO line value setter callbacks
      gpio: winbond: use new GPIO line value setter callbacks
      gpio: wm831x: use new GPIO line value setter callbacks
      gpio: wm8350: use new GPIO line value setter callbacks
      gpio: wm8994: use new GPIO line value setter callbacks
      gpio: xgene: use new GPIO line value setter callbacks
      gpio: xilinx: use new GPIO line value setter callbacks
      gpio: xlp: drop unneeded ngpio checks
      gpio: xlp: use new GPIO line value setter callbacks
      gpio: xra1403: use new GPIO line value setter callbacks
      gpio: xtensa: remove unneeded .set() callback
      gpio: xtensa: use new GPIO line value setter callbacks
      gpio: zevio: use new GPIO line value setter callbacks
      gpio: zynq: use new GPIO line value setter callbacks
      gpio: zynqmp-modepin: use new GPIO line value setter callbacks
      gpio: zynqmp-modepin: set line value in .direction_output()

 drivers/gpio/gpio-vx855.c          |  9 +++++----
 drivers/gpio/gpio-wcd934x.c        | 16 ++++++++++------
 drivers/gpio/gpio-wcove.c          | 12 ++++++------
 drivers/gpio/gpio-winbond.c        | 16 ++++++++++------
 drivers/gpio/gpio-wm831x.c         | 13 ++++++-------
 drivers/gpio/gpio-wm8350.c         | 15 +++++++--------
 drivers/gpio/gpio-wm8994.c         |  8 +++++---
 drivers/gpio/gpio-xgene.c          |  6 ++++--
 drivers/gpio/gpio-xilinx.c         |  6 ++++--
 drivers/gpio/gpio-xlp.c            | 10 ++++------
 drivers/gpio/gpio-xra1403.c        | 13 +++++--------
 drivers/gpio/gpio-xtensa.c         | 13 ++++---------
 drivers/gpio/gpio-zevio.c          |  6 ++++--
 drivers/gpio/gpio-zynq.c           |  8 +++++---
 drivers/gpio/gpio-zynqmp-modepin.c | 10 ++++++----
 15 files changed, 85 insertions(+), 76 deletions(-)
---
base-commit: 58ba80c4740212c29a1cf9b48f588e60a7612209
change-id: 20250703-gpiochip-set-rv-gpio-remaining-6c554dd3e662

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Re: (subset) [PATCH 00/19] gpio: use new GPIO line value setter callbacks in remaining drivers
Posted by Bartosz Golaszewski 2 months, 3 weeks ago
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


On Wed, 09 Jul 2025 08:41:37 +0200, Bartosz Golaszewski wrote:
> Alright, there are a few left so let's get this done.
> 
> Commit 98ce1eb1fd87e ("gpiolib: introduce gpio_chip setters that return
> values") added new line setter callbacks to struct gpio_chip. They allow
> to indicate failures to callers. We're in the process of converting all
> GPIO controllers to using them before removing the old ones. This series
> converts the remaining GPIO drivers.
> 
> [...]

I queued the ones where there were no comments and will send an updated
conversion for gpio-wcove with comments from Andy addressed.

[01/19] gpio: vx855: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/db12cdc8224845bbe31c1d7e5e7d2c2dde4847dc
[02/19] gpio: wcd934x: check the return value of regmap_update_bits()
        https://git.kernel.org/brgl/linux/c/ff0f0d7c6587e38c308be9905e36f86e98fb9c1f
[03/19] gpio: wcd934x: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/637c3054e9a5337d303577584d575c247138dae9
[05/19] gpio: winbond: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/dd94adf7da36281b5d1bc40ee8ac265082576f4c
[06/19] gpio: wm831x: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/023a24f83edf9abe0fbb66929d286cec5a09afbb
[07/19] gpio: wm8350: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/f7a680e9c2e512f903c385ed1a71732389788aa0
[08/19] gpio: wm8994: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/47b427311d959fd3235485c08f367cd14df282ab
[09/19] gpio: xgene: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/0933fc87f31da17871d6cf255dd9a3de86658685
[10/19] gpio: xilinx: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/1919ea19a4ff8d534fb2789453a69f86f70a493b
[11/19] gpio: xlp: drop unneeded ngpio checks
        https://git.kernel.org/brgl/linux/c/c719fd3e3991b16460babf70036bf39cdbbb7a90
[12/19] gpio: xlp: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/6d0f71cd58aaf107dab3ea5a50e9f725d4691043
[13/19] gpio: xra1403: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/ae8bcae8487293cb1de201734ab4779a2438618a
[14/19] gpio: xtensa: remove unneeded .set() callback
        https://git.kernel.org/brgl/linux/c/735ddc67ab88d35378cb79cfa5ac5f87db0775fb
[15/19] gpio: xtensa: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/383a02f6d421bf7703703aeb3e7270426b2fc30c
[16/19] gpio: zevio: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/ee6e05eb5fe27a45678848fb92a2a5db6b3fea84
[17/19] gpio: zynq: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/815c9769ba0e2e184eac570e596391a1ca58b8c8
[18/19] gpio: zynqmp-modepin: use new GPIO line value setter callbacks
        https://git.kernel.org/brgl/linux/c/680450b358b73823c82d150330aacc52e286be08
[19/19] gpio: zynqmp-modepin: set line value in .direction_output()
        https://git.kernel.org/brgl/linux/c/e70513bd98e3912b431b196e3cf53ac821598e6a

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>