Skip to content

Commit 9ff2443

Browse files
author
Bartosz Golaszewski
committed
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>
1 parent 5ceb353 commit 9ff2443

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/gpio/TODO

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,15 @@ A small number of drivers have been converted (pl061, tegra186, msm,
161161
amd, apple), and can be used as examples of how to proceed with this
162162
conversion. Note that drivers using the generic irqchip framework
163163
cannot be converted yet, but watch this space!
164+
165+
-------------------------------------------------------------------------------
166+
167+
Convert all GPIO chips to using the new, value returning line setters
168+
169+
struct gpio_chip's set() and set_multiple() callbacks are now deprecated. They
170+
return void and thus do not allow drivers to indicate failure to set the line
171+
value back to the caller.
172+
173+
We've now added new variants - set_rv() and set_multiple_rv() that return an
174+
integer. Let's convert all GPIO drivers treewide to use the new callbacks,
175+
remove the old ones and finally rename the new ones back to the old names.

0 commit comments

Comments
 (0)