summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-03-21 18:49:37 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-03-24 12:35:10 +0300
commit9ff2443b37d8db5b4712afb1cf44a1e75803407a (patch)
treeb2c76020238197569d00efd4a566bf06c9f12693
parent5ceb3536f2f9ec4fcbe5f83cde6766c6cb673dce (diff)
downloadlinux-9ff2443b37d8db5b4712afb1cf44a1e75803407a.tar.xz
gpio: TODO: add an item to track the conversion to the new value setters
Add an item tracking the treewide conversion of GPIO drivers to using the new line value setter callbacks in struct gpio_chip instead of the old ones that don't allow drivers to signal failures to callers. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20250321-gpio-todo-updates-v1-5-7b38f07110ee@linaro.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
-rw-r--r--drivers/gpio/TODO12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpio/TODO b/drivers/gpio/TODO
index 052ba7007003..3abf4805335f 100644
--- a/drivers/gpio/TODO
+++ b/drivers/gpio/TODO
@@ -161,3 +161,15 @@ A small number of drivers have been converted (pl061, tegra186, msm,
amd, apple), and can be used as examples of how to proceed with this
conversion. Note that drivers using the generic irqchip framework
cannot be converted yet, but watch this space!
+
+-------------------------------------------------------------------------------
+
+Convert all GPIO chips to using the new, value returning line setters
+
+struct gpio_chip's set() and set_multiple() callbacks are now deprecated. They
+return void and thus do not allow drivers to indicate failure to set the line
+value back to the caller.
+
+We've now added new variants - set_rv() and set_multiple_rv() that return an
+integer. Let's convert all GPIO drivers treewide to use the new callbacks,
+remove the old ones and finally rename the new ones back to the old names.