]> git.ipfire.org Git - thirdparty/linux.git/commit
leds: bcm63138: Handle shift register config
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Oct 2024 14:10:52 +0000 (16:10 +0200)
committerLee Jones <lee@kernel.org>
Fri, 11 Oct 2024 07:37:12 +0000 (08:37 +0100)
commit5f312fdace9cee3fb8a7964469546fb4d8624ff7
treef056ba84e8c839e4d6f9c2b5f89543fb0fd34fe4
parent61574073e15cbaaab3fa1b2ad7df3ffe21e48509
leds: bcm63138: Handle shift register config

This adds code to optionally read the width of the shift register
chain from the device tree and use it to set up the register
controlling the shifter hardware.

If the property is not present, the boot-time default is used so
existing device trees keep working as this is what they assume.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20241010-bcm63138-leds-v4-3-cdb80780a555@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/blink/leds-bcm63138.c