summaryrefslogtreecommitdiff
path: root/include/linux/delay.h
diff options
context:
space:
mode:
authorAndre Przywara <[email protected]>2026-04-08 00:34:45 +0200
committerAndre Przywara <[email protected]>2026-04-30 23:31:02 +0200
commitdc2427ab20d71258c21379ebc575f05ac9d10141 (patch)
tree69250a04bbf76ffc618e85016519e44ec998e9ac /include/linux/delay.h
parent2472b31997a3343f5be14b7d3c5549010ea83b1a (diff)
sunxi: spl: fix SPL_SUNXI_LED active low configuration
The newly introduced Allwinner SPL LED "framework" defined a SPL_SUNXI_LED_STATUS_STATE Kconfig symbol, that was supposed to denote the active-low vs. active-high polarity of the LED. However this is a bool symbol, so it will simply vanish if not defined, and we cannot use it directly inside a C statement. Filter the symbol through the IS_ENABLED() macro, which will return 0 if the symbol is not defined, which is the intended value here. Since the STATUS_STATE name is a bit confusing, rename it to ACTIVE_HIGH on the way, because that is its real meaning. Also the LED_STATUS_BIT name for the GPIO number is similarly a remnant of the old status LED code, so rename it to LED_STATUS_GPIO as well. This fixes configuring LEDs with active-low polarity. Fixes: 256557dd9aae ("sunxi: remove usage of legacy LED API") Signed-off-by: Andre Przywara <[email protected]> Reviewed-by: Paul Kocialkowski <[email protected]> Closes: https://lore.kernel.org/u-boot/adfMQBPdntWy1KIq@shepard/ Acked-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'include/linux/delay.h')
0 files changed, 0 insertions, 0 deletions