From: Bartosz Golaszewski Date: Thu, 20 Feb 2025 09:56:58 +0000 (+0100) Subject: leds: aw200xx: don't use return with gpiod_set_value() variants X-Git-Tag: v6.15-rc1~179^2~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=129fdfe25ac513018d5fe85b0c493025193ef19f;p=thirdparty%2Flinux.git 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 Cc: Pavel Machek Cc: linux-leds@vger.kernel.org Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202502121512.CmoMg9Q7-lkp@intel.com/ Acked-by: Lee Jones Acked-by: Uwe Kleine-König Link: https://lore.kernel.org/r/20250220-gpio-set-retval-v2-1-bc4cfd38dae3@linaro.org Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/leds/leds-aw200xx.c b/drivers/leds/leds-aw200xx.c index 08cca128458c1..fe223d363a5d4 100644 --- a/drivers/leds/leds-aw200xx.c +++ b/drivers/leds/leds-aw200xx.c @@ -379,7 +379,7 @@ static void aw200xx_enable(const struct aw200xx *const chip) static void aw200xx_disable(const struct aw200xx *const chip) { - return gpiod_set_value_cansleep(chip->hwen, 0); + gpiod_set_value_cansleep(chip->hwen, 0); } static int aw200xx_probe_get_display_rows(struct device *dev,