Skip to content

Commit 129fdfe

Browse files
author
Bartosz Golaszewski
committed
leds: aw200xx: don't use return with gpiod_set_value() variants
While gpiod_set_value() currently returns void, it will soon be converted to return an integer instead. Don't do `return gpiod_set...`. Cc: Lee Jones <[email protected]> Cc: Pavel Machek <[email protected]> Cc: [email protected] Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Acked-by: Lee Jones <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 007094c commit 129fdfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/leds/leds-aw200xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static void aw200xx_enable(const struct aw200xx *const chip)
379379

380380
static void aw200xx_disable(const struct aw200xx *const chip)
381381
{
382-
return gpiod_set_value_cansleep(chip->hwen, 0);
382+
gpiod_set_value_cansleep(chip->hwen, 0);
383383
}
384384

385385
static int aw200xx_probe_get_display_rows(struct device *dev,

0 commit comments

Comments
 (0)