]> git.baikalelectronics.ru Git - kernel.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)
commitac1469bf3a5ab2e815b420fadda87b1166f73131
tree3f83d18f21e37d9d3e68abc12804c0a1bff7e976
parentd7f79f98a5744b4c2e597cc023c3fd49b8035066
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