mediatek: leds-smartrg: handle disabled LEDs
authorRosen Penev <rosenp@gmail.com>
Tue, 8 Oct 2024 23:39:07 +0000 (16:39 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 19 Oct 2024 17:19:38 +0000 (19:19 +0200)
commita6252a6dfcdddc5c2a97ac29695e9f9f004a4430
tree4ce6f2fe453666cd85c962e1c0d78c2838a73dc9
parent0dfe1e876a0704216215312ae4be6875d2378170
mediatek: leds-smartrg: handle disabled LEDs

If LEDs are disabled, they should not be handled.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16651
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mediatek/files/drivers/leds/leds-smartrg-system.c