[PATCH v2 0/1] leds: syscon: Add tristate option

From: Bevan Weiss

Date: Sat Mar 07 2026 - 20:58:43 EST


> My first submission to a linux-kernel list, so apologies for any errors.
Apologies, that didn't age well, I should have looked at the file history.
It looks like the module=>builtin was done before, so this change reverts
that.

It also adds MODULE_DESCRIPTION and MODULE_LICENSE along with the tristate
Kconfig.

In OpenWrt, this allows leds-syscon to be .config'd as a module in
subtargets, and then included / excluded from rootfs filesystems as
required for specific boards. Without this, every board would need to have
leds-syscon compiled as builtin just to provide it for one specific board.
And OpenWrt devices are often space-constrained, where this is a
significant concern.


Bevan Weiss (1):
leds: syscon: Add tristate option

drivers/leds/Kconfig | 4 ++--
drivers/leds/leds-syscon.c | 20 +++++++++++++++++---
2 files changed, 19 insertions(+), 5 deletions(-)

--
2.43.0