add usb charge config

This commit is contained in:
ywj
2015-02-10 09:23:33 +08:00
parent b448db9497
commit cb6303521d
2 changed files with 9 additions and 0 deletions

View File

@@ -404,6 +404,14 @@ config BATTERY_RK30_ADC_FAC
help
Say Y to enable support for the battery on the RK30.
config BATTERY_RK30_USB_CHARGE
tristate "RK30 USB CHARGE"
depends on BATTERY_RK30_ADC||BATTERY_RK30_ADC_FAC
default y
help
say Y to enable suspport for the USB battery charge
config CHARGER_BQ2415X
tristate "TI BQ2415x battery charger driver"
depends on I2C

View File

@@ -2459,6 +2459,7 @@ err_sysfs:
err_ac_failed:
power_supply_unregister(&data ->ac);
err_usb_failed:
err_battery_failed:
power_supply_unregister(&data ->bat);