]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
power: supply: core: fix typo in function to get current charge control limit
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 15 Apr 2019 14:29:18 +0000 (16:29 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Apr 2019 19:40:00 +0000 (21:40 +0200)
There is a spelling mistake in ps_get_cur_charge_cntl_limit function so
replace 'chrage' for 'charge'.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c

index ae9c9d1d437ce0bba666faaf8b6a3e6b44c9d8de..65c619c032239cd39196e9539d52e504307b9171 100644 (file)
@@ -899,7 +899,7 @@ static int ps_get_max_charge_cntl_limit(struct thermal_cooling_device *tcd,
        return ret;
 }
 
-static int ps_get_cur_chrage_cntl_limit(struct thermal_cooling_device *tcd,
+static int ps_get_cur_charge_cntl_limit(struct thermal_cooling_device *tcd,
                                        unsigned long *state)
 {
        struct power_supply *psy;
@@ -934,7 +934,7 @@ static int ps_set_cur_charge_cntl_limit(struct thermal_cooling_device *tcd,
 
 static const struct thermal_cooling_device_ops psy_tcd_ops = {
        .get_max_state = ps_get_max_charge_cntl_limit,
-       .get_cur_state = ps_get_cur_chrage_cntl_limit,
+       .get_cur_state = ps_get_cur_charge_cntl_limit,
        .set_cur_state = ps_set_cur_charge_cntl_limit,
 };