aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ts4900.c
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-10-16 21:50:56 +0000
committersaturneric <[email protected]>2025-10-16 21:50:56 +0000
commit5293dcd7ffda472dbf326c81877bb63d2bfcbd10 (patch)
treeda3be05c4aa1646e5f26a84cd75d83fe866c5358 /drivers/gpio/gpio-ts4900.c
parentMerge tag 'v6.16' (diff)
parentLinux 6.17 (diff)
downloadkernel-5293dcd7ffda472dbf326c81877bb63d2bfcbd10.tar.gz
kernel-5293dcd7ffda472dbf326c81877bb63d2bfcbd10.zip
Merge tag 'v6.17'
Linux 6.17
Diffstat (limited to 'drivers/gpio/gpio-ts4900.c')
-rw-r--r--drivers/gpio/gpio-ts4900.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-ts4900.c b/drivers/gpio/gpio-ts4900.c
index 5c806140fdf0..d9ee8fc77ccd 100644
--- a/drivers/gpio/gpio-ts4900.c
+++ b/drivers/gpio/gpio-ts4900.c
@@ -95,16 +95,16 @@ static int ts4900_gpio_get(struct gpio_chip *chip, unsigned int offset)
return !!(reg & priv->input_bit);
}
-static void ts4900_gpio_set(struct gpio_chip *chip, unsigned int offset,
- int value)
+static int ts4900_gpio_set(struct gpio_chip *chip, unsigned int offset,
+ int value)
{
struct ts4900_gpio_priv *priv = gpiochip_get_data(chip);
if (value)
- regmap_update_bits(priv->regmap, offset, TS4900_GPIO_OUT,
- TS4900_GPIO_OUT);
- else
- regmap_update_bits(priv->regmap, offset, TS4900_GPIO_OUT, 0);
+ return regmap_update_bits(priv->regmap, offset,
+ TS4900_GPIO_OUT, TS4900_GPIO_OUT);
+
+ return regmap_update_bits(priv->regmap, offset, TS4900_GPIO_OUT, 0);
}
static const struct regmap_config ts4900_regmap_config = {