From 79ab724716daa0aa08d17e123f53ccdeab4ecf71 Mon Sep 17 00:00:00 2001 From: Dongwoo Lee Date: Mon, 27 May 2019 16:07:05 +0900 Subject: [PATCH] pass: thermal: Correct thermal action names This patch correct thermal action names in comments in order to match into previous changes. Change-Id: I7931ddc9dc42bf364cb9f020741d063402004c33 Signed-off-by: Dongwoo Lee --- scripts/pass-thermal.conf | 2 +- src/thermal/thermal-parser.c | 6 +++--- src/thermal/thermal.c | 4 ++-- src/thermal/thermal.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/pass-thermal.conf b/scripts/pass-thermal.conf index bc0c656..f15ad2c 100644 --- a/scripts/pass-thermal.conf +++ b/scripts/pass-thermal.conf @@ -6,7 +6,7 @@ thermal_number_of_scenario=4 # describe the scenario section as follows #[Scenario0] -#name=ReleaseAction +#name=Release #support=yes [thermal.scenario0] name=Release diff --git a/src/thermal/thermal-parser.c b/src/thermal/thermal-parser.c index 7dfdaf1..58df42e 100644 --- a/src/thermal/thermal-parser.c +++ b/src/thermal/thermal-parser.c @@ -23,8 +23,8 @@ * @brief Parse the supported thermal scenario information from * /etc/pass/pass-thermal.conf configuration. * - /etc/pass/pass-thermal.conf contains the list and information - * for supported thermal scenarios. For example, ReleaseAction, - * WarningAction, LimitAction and ShutdownAction. + * for supported thermal scenarios. For example, Release, + * Warning, LimitAction and Shutdown. * @ingroup COM_POWER_MGNT */ @@ -113,7 +113,7 @@ static int thermal_parse_scenario(struct parse_result *result, void *user_data, /** * @brief Parse configuration to get information of supported scenarios - * for Thermal Monitor such as ReleaseAction, WarningAction. + * for Thermal Monitor such as Release, Warning. * @param [in] result Parsed raw data from configuration * @param [in] user_data Instance for each scenario * @return @c 0 on success, otherwise error value diff --git a/src/thermal/thermal.c b/src/thermal/thermal.c index 76207c3..cf823f5 100644 --- a/src/thermal/thermal.c +++ b/src/thermal/thermal.c @@ -21,7 +21,7 @@ * @brief Provide Thermal Monitor external D-bus interface and verify * whether the thermal scenarios are supported or not and then * send broadcasting D-bus signal with the decided thermal - * scenario like ReleseAction through D-bus interface. + * scenario like Release through D-bus interface. * @ingroup COM_POWER_MGNT */ @@ -194,7 +194,7 @@ static struct pass_gdbus_signal_info g_gdbus_signal_infos[] = { * @brief Send broadcasting signal with the decided scenario name from * pass-thermal before checking whether the scenario is supported * or not.. - * @param [in] data Scenario name like ReleaseAction, WarningAction + * @param [in] data Scenario name like Release, Warning * @param [in] user_data Unused parameter */ static int thermal_notifier_cb(void *data, void *user_data) diff --git a/src/thermal/thermal.h b/src/thermal/thermal.h index fd8295c..836fa20 100644 --- a/src/thermal/thermal.h +++ b/src/thermal/thermal.h @@ -23,7 +23,7 @@ * @brief Provide Thermal Monitor external D-bus interface and verify * whether the thermal scenarios are supported or not and then * send broadcasting D-bus signal with the decided thermal - * scenario like ReleseAction through D-bus interface. + * scenario like Release through D-bus interface. * @ingroup COM_POWER_MGNT */ -- 2.7.4