aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2025-02-27 15:28:31 +0000
committerBartosz Golaszewski <[email protected]>2025-03-03 08:34:08 +0000
commit8014097f1466f7e034844770c537b8dc7d98811f (patch)
treee9443d2148fcc48625dd73d9e9081e435edde11d /drivers/gpio/gpiolib.c
parentMerge tag 'v6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/torval... (diff)
downloadkernel-8014097f1466f7e034844770c537b8dc7d98811f.tar.gz
kernel-8014097f1466f7e034844770c537b8dc7d98811f.zip
gpiolib: remove unneeded WARN_ON() from gpiochip_set_multiple()
GPIO drivers are not required to support set_multiple() - the core will fallback to calling set() for each line if it's missing. Remove the offending check from gpiochip_set_multiple(). Fixes: 98ce1eb1fd87 ("gpiolib: introduce gpio_chip setters that return values") Reported-by: Marek Szyprowski <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 212269f2d9a2..ec2217a30db3 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -3604,9 +3604,6 @@ static int gpiochip_set_multiple(struct gpio_chip *gc,
lockdep_assert_held(&gc->gpiodev->srcu);
- if (WARN_ON(unlikely(!gc->set_multiple && !gc->set_multiple_rv)))
- return -EOPNOTSUPP;
-
if (gc->set_multiple_rv) {
ret = gc->set_multiple_rv(gc, mask, bits);
if (ret > 0)