[PATCH 0/2] leds: trigger: load trigger modules on-demand if used as default trigger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Even if a trigger is set as default trigger for a LED device,
the respective trigger module (if built as module) isn't automatically
loaded by the kernel if the LED device is registered. I think we can
do better. Try to load the module asynchronously by alias
ledtrig:<trigger name>. This requires that such an alias is added to
relevant triggers. At first do this for the netdev trigger.

Tested with the recently added r8169 LED support using the netdev
trigger.

Heiner Kallweit (2):
  leds: trigger: load trigger modules on-demand if used as default
    trigger
  leds: trigger: netdev: Add module alias ledtrig:netdev

 drivers/leds/led-triggers.c           | 9 +++++++++
 drivers/leds/trigger/ledtrig-netdev.c | 1 +
 2 files changed, 10 insertions(+)

-- 
2.43.0





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux