Power supply class support

modulename: power_supply.ko

configname: CONFIG_POWER_SUPPLY

Linux Kernel Configuration
└─>Device Drivers
└─>Power supply class support
In linux kernel since version 2.6.24 (release Date: 2008-01-24)  
Say Y here to enable power supply class support. This allows
power supply (batteries, AC, USB) monitoring by userspace
via sysfs and uevent (if available) and/or APM kernel interface
(if selected below).

source code: