diff mbox series

power: supply: core: fix typo in function to get current charge control limit

Message ID 20190415142918.4383-1-enric.balletbo@collabora.com (mailing list archive)
State Not Applicable, archived
Headers show
Series power: supply: core: fix typo in function to get current charge control limit | expand

Commit Message

Enric Balletbo i Serra April 15, 2019, 2:29 p.m. UTC
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>
---

 drivers/power/supply/power_supply_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Sebastian Reichel April 15, 2019, 7:44 p.m. UTC | #1
Hi,

On Mon, Apr 15, 2019 at 04:29:18PM +0200, Enric Balletbo i Serra wrote:
> 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>
> ---

Thanks, queued.

-- Sebastian

> 
>  drivers/power/supply/power_supply_core.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
> index c917a8b43b2b..ef2aecfe2cd2 100644
> --- a/drivers/power/supply/power_supply_core.c
> +++ b/drivers/power/supply/power_supply_core.c
> @@ -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,
>  };
>  
> -- 
> 2.20.1
>
diff mbox series

Patch

diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
index c917a8b43b2b..ef2aecfe2cd2 100644
--- a/drivers/power/supply/power_supply_core.c
+++ b/drivers/power/supply/power_supply_core.c
@@ -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,
 };