]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: Fix the simple battery property names
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 18 Mar 2019 13:36:29 +0000 (14:36 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 5 Apr 2019 14:00:54 +0000 (16:00 +0200)
commitf84917361cfd40ca5652a5c2797b697f1d6cbc9e
treea67dd4b0015965c47d27e11b3db9a4f420bd6e4c
parente815a7793e0f730dd094377004eabbea986a5f1d
power: supply: Fix the simple battery property names

Commit 9c616d8c4862 ("power: supply: core: Add power_supply_battery_info
and API") introduced code to parse the simple-battery node and express
battery charging constraints. However, it parsed that node using the
properties constant_charge_current_max_microamp and
constant_charge_voltage_max_microvolt, while the device tree binding for
the simple-battery node uses dashes to separate the words in those
properties (constant-charge-current-max-microamp and
constant-charge-voltage-max-microvolt).

Let's make the code match the binding.

Fixes: 9c616d8c4862 ("power: supply: core: Add power_supply_battery_info and API")
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c