parisc: led: Rewrite LED/LCD driver to utilizize Linux LED subsystem
authorHelge Deller <deller@gmx.de>
Sun, 27 Aug 2023 11:50:00 +0000 (13:50 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 28 Aug 2023 15:58:14 +0000 (17:58 +0200)
commit789e527adfc335681ea4c3e347e8b500753d4fde
treeef31d7e4a1c4c940e753f9aaf8e5b30f0a9880f5
parent4db89524b084f712a887256391fc19d9f66c8e55
parisc: led: Rewrite LED/LCD driver to utilizize Linux LED subsystem

Rewrite the whole driver and drop the own code to calculate load
average, disk and LAN load. Switch instead to use the in-kernel LED
subsystem, which gives us quite some advantages, e.g.
- existing triggers for heartbeat and disk/lan activity can be used
- users can configre the LEDs at will to any existing trigger via
  /sys/class/leds
- less overhead since we don't need to run own timers
- fully integrated in Linux and as such cleaner code.

Note that the driver now depends on CONFIG_LEDS_CLASS which has to
be built-in and not as module.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/led.h
arch/parisc/kernel/setup.c
drivers/parisc/Kconfig
drivers/parisc/led.c