LED Class Support

modulename: led-class.ko

configname: CONFIG_LEDS_CLASS

Linux Kernel Configuration
└─>Device Drivers
└─>LED devices
└─>LED Class Support
In linux kernel since version 2.6.20 (release Date: 2007-02-04)  
This option enables the led sysfs class in /sys/class/leds. You'll
need this to do anything useful with LEDs. If unsure, say N.

source code: