mediatek: add led count
authorSven Wegener <sven.wegener@stealer.net>
Sat, 12 Jun 2021 19:56:22 +0000 (21:56 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 18 Sep 2022 14:39:41 +0000 (15:39 +0100)
commit420a86436f6cfc3d53c4c503bc65e988ba8dc086
treecbaa5149bf70231e509f2c8d7252138d1970c174
parent40610c53226931e9ccab4c9e4b225e7ca6039c1d
mediatek: add led count

The LEDs connected to the MCU are so-called smart LEDs and their signal is
daisy-chained. Because of this, the MCU needs to be told how many LEDs are
connected. It also means the LEDs could be individually controlled, if the MCU
has a command for this.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
(cherry picked from commit 76198e8f09a607c6aca2621f59d7a4cd7f6653e3)
target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c