* [PATCH] power: supply: core: fix typo in function to get current charge control limit
@ 2019-04-15 14:29 Enric Balletbo i Serra
2019-04-15 19:44 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: Enric Balletbo i Serra @ 2019-04-15 14:29 UTC (permalink / raw)
To: linux-kernel, Sebastian Reichel; +Cc: kernel, linux-pm
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(-)
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] power: supply: core: fix typo in function to get current charge control limit
2019-04-15 14:29 [PATCH] power: supply: core: fix typo in function to get current charge control limit Enric Balletbo i Serra
@ 2019-04-15 19:44 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2019-04-15 19:44 UTC (permalink / raw)
To: Enric Balletbo i Serra; +Cc: linux-kernel, kernel, linux-pm
[-- Attachment #1: Type: text/plain, Size: 1433 bytes --]
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
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-15 19:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-15 14:29 [PATCH] power: supply: core: fix typo in function to get current charge control limit Enric Balletbo i Serra
2019-04-15 19:44 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).