Battery/charger/bq24192: add charger online sysfs interface
authorYin Kangkai <kangkai.yin@intel.com>
Tue, 10 Sep 2013 09:28:42 +0000 (17:28 +0800)
committerYin Kangkai <kangkai.yin@linux.intel.com>
Thu, 26 Dec 2013 14:33:54 +0000 (22:33 +0800)
commitdab222f668b80fe9210e05b6c416e08a4a7b63f2
treec32db61a5d685173554298a3711166fe3883c63a
parent11ac5ae3a495c0554e0542c172c0aebe981f05bf
Battery/charger/bq24192: add charger online sysfs interface

Add sysfs interface "online" to indicate whether charger is online or not.

Interface is here:
/sys/devices/pci0000:00/0000:00:00.5/i2c-2/2-006b/online
Or
/sys/class/power_supply/bq24192_charger/device/online

Pre-OS needs this flag to update the UI (charger is inserted or not).

Change-Id: I5dc683c22461d3b632fd983465b9282fb8b9d3a7
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
drivers/power/bq24192_charger.c