]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
power_supply: bq2415x_charger: Add ACPI support
authorAnda-Maria Nicolae <anda-maria.nicolae@intel.com>
Tue, 12 May 2015 09:11:33 +0000 (12:11 +0300)
committerSebastian Reichel <sre@kernel.org>
Sat, 23 May 2015 18:03:00 +0000 (20:03 +0200)
commitb01e7c3b803e6f0498d4db0b124e3b4efb5ac728
tree3f83d18f21e37d9d3e68abc12804c0a1bff7e976
parentf6d8b7744f692def009b9b354a39daf503bc9e00
power_supply: bq2415x_charger: Add ACPI support

Replace of_property_read_u32() with device_property_read_u32(), which is a
wrapper over ACPI and device tree enumeration methods.
When ACPI enumeration is used, automode is not supported. Therefore,
bq2415x_charger does not update its input current automatically, depending
on the USB port type that is connected to. Input current may be updated via
sysfs.

Signed-off-by: Anda-Maria Nicolae <anda-maria.nicolae@intel.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/bq2415x_charger.c