Commit 02276af2 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sebastian Reichel

power: supply: charger-manager: Fix trivial language typos

Fix few trivial language typos.
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent fd10606f
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* This driver enables to monitor battery health and control charger * This driver enables to monitor battery health and control charger
* during suspend-to-mem. * during suspend-to-mem.
* Charger manager depends on other devices. register this later than * Charger manager depends on other devices. Register this later than
* the depending devices. * the depending devices.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <linux/thermal.h> #include <linux/thermal.h>
/* /*
* Default termperature threshold for charging. * Default temperature threshold for charging.
* Every temperature units are in tenth of centigrade. * Every temperature units are in tenth of centigrade.
*/ */
#define CM_DEFAULT_RECHARGE_TEMP_DIFF 50 #define CM_DEFAULT_RECHARGE_TEMP_DIFF 50
...@@ -356,7 +356,7 @@ static bool is_polling_required(struct charger_manager *cm) ...@@ -356,7 +356,7 @@ static bool is_polling_required(struct charger_manager *cm)
* Note that Charger Manager keeps the charger enabled regardless whether * Note that Charger Manager keeps the charger enabled regardless whether
* the charger is charging or not (because battery is full or no external * the charger is charging or not (because battery is full or no external
* power source exists) except when CM needs to disable chargers forcibly * power source exists) except when CM needs to disable chargers forcibly
* bacause of emergency causes; when the battery is overheated or too cold. * because of emergency causes; when the battery is overheated or too cold.
*/ */
static int try_charger_enable(struct charger_manager *cm, bool enable) static int try_charger_enable(struct charger_manager *cm, bool enable)
{ {
...@@ -643,7 +643,7 @@ static int cm_check_thermal_status(struct charger_manager *cm) ...@@ -643,7 +643,7 @@ static int cm_check_thermal_status(struct charger_manager *cm)
if (ret) { if (ret) {
/* FIXME: /* FIXME:
* No information of battery temperature might * No information of battery temperature might
* occur hazadous result. We have to handle it * occur hazardous result. We have to handle it
* depending on battery type. * depending on battery type.
*/ */
dev_err(cm->dev, "Failed to get battery temperature\n"); dev_err(cm->dev, "Failed to get battery temperature\n");
...@@ -693,7 +693,7 @@ static bool _cm_monitor(struct charger_manager *cm) ...@@ -693,7 +693,7 @@ static bool _cm_monitor(struct charger_manager *cm)
uevent_notify(cm, default_event_names[temp_alrt]); uevent_notify(cm, default_event_names[temp_alrt]);
/* /*
* Check whole charging duration and discharing duration * Check whole charging duration and discharging duration
* after full-batt. * after full-batt.
*/ */
} else if (!cm->emergency_stop && check_charging_duration(cm)) { } else if (!cm->emergency_stop && check_charging_duration(cm)) {
...@@ -866,7 +866,7 @@ static void battout_handler(struct charger_manager *cm) ...@@ -866,7 +866,7 @@ static void battout_handler(struct charger_manager *cm)
} }
/** /**
* misc_event_handler - Handler for other evnets * misc_event_handler - Handler for other events
* @cm: the Charger Manager representing the battery. * @cm: the Charger Manager representing the battery.
* @type: the Charger Manager representing the battery. * @type: the Charger Manager representing the battery.
*/ */
...@@ -1218,7 +1218,7 @@ static int charger_extcon_init(struct charger_manager *cm, ...@@ -1218,7 +1218,7 @@ static int charger_extcon_init(struct charger_manager *cm,
} }
/** /**
* charger_manager_register_extcon - Register extcon device to recevie state * charger_manager_register_extcon - Register extcon device to receive state
* of charger cable. * of charger cable.
* @cm: the Charger Manager representing the battery. * @cm: the Charger Manager representing the battery.
* *
...@@ -1538,7 +1538,7 @@ static struct charger_desc *of_cm_parse_desc(struct device *dev) ...@@ -1538,7 +1538,7 @@ static struct charger_desc *of_cm_parse_desc(struct device *dev)
of_property_read_u32(np, "cm-discharging-max", of_property_read_u32(np, "cm-discharging-max",
&desc->discharging_max_duration_ms); &desc->discharging_max_duration_ms);
/* battery charger regualtors */ /* battery charger regulators */
desc->num_charger_regulators = of_get_child_count(np); desc->num_charger_regulators = of_get_child_count(np);
if (desc->num_charger_regulators) { if (desc->num_charger_regulators) {
struct charger_regulator *chg_regs; struct charger_regulator *chg_regs;
...@@ -1801,7 +1801,7 @@ static int charger_manager_probe(struct platform_device *pdev) ...@@ -1801,7 +1801,7 @@ static int charger_manager_probe(struct platform_device *pdev)
/* /*
* Charger-manager have to check the charging state right after * Charger-manager have to check the charging state right after
* tialization of charger-manager and then update current charging * initialization of charger-manager and then update current charging
* state. * state.
*/ */
cm_monitor(); cm_monitor();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment