aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-08-10 11:10:48 +0000
committersaturneric <[email protected]>2025-08-10 11:10:48 +0000
commit571159c4b03177052b1f0334623ea351a2bfa7a0 (patch)
tree5bfcadc6c61b36e7cc223d7e2896f8e92b7badca /drivers/gpio/gpiolib.c
parentMerge tag 'v6.16-rc4' (diff)
parentLinux 6.16-rc6 (diff)
downloadkernel-571159c4b03177052b1f0334623ea351a2bfa7a0.tar.gz
kernel-571159c4b03177052b1f0334623ea351a2bfa7a0.zip
Merge tag 'v6.16-rc6'
Linux 6.16-rc6
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index fac1e36b9849..a716544c4af7 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -3310,14 +3310,15 @@ static int gpiod_get_raw_value_commit(const struct gpio_desc *desc)
static int gpio_chip_get_multiple(struct gpio_chip *gc,
unsigned long *mask, unsigned long *bits)
{
- int ret;
-
lockdep_assert_held(&gc->gpiodev->srcu);
if (gc->get_multiple) {
+ int ret;
+
ret = gc->get_multiple(gc, mask, bits);
if (ret > 0)
return -EBADE;
+ return ret;
}
if (gc->get) {