summaryrefslogtreecommitdiffstats
path: root/power-8610.c
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2018-03-26 01:00:20 +0300
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commitc3942652f9d6d56e390223934ca7eb8a1ebd7d46 (patch)
treebbce12695470fb4cdf4ce811f8505fefd1aa2535 /power-8610.c
parent9cdea7baf4392d87cf0a55d24837f6fd0d6faa96 (diff)
downloadvendor_qcom_opensource_power-c3942652f9d6d56e390223934ca7eb8a1ebd7d46.tar.gz
vendor_qcom_opensource_power-c3942652f9d6d56e390223934ca7eb8a1ebd7d46.tar.bz2
vendor_qcom_opensource_power-c3942652f9d6d56e390223934ca7eb8a1ebd7d46.zip
power: Compile with -Wall -Wextra -Werror
* And fix the build errors Change-Id: I183203edfd92d4672893d74aa7428bc9f5e17772
Diffstat (limited to 'power-8610.c')
-rw-r--r--power-8610.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/power-8610.c b/power-8610.c
index 7ac90ea..a53cc72 100644
--- a/power-8610.c
+++ b/power-8610.c
@@ -47,7 +47,7 @@
#include "power-common.h"
#include "utils.h"
-int power_hint_override(power_hint_t hint, void* data) {
+int power_hint_override(power_hint_t hint, void* UNUSED(data)) {
switch (hint) {
case POWER_HINT_INTERACTION: {
int resources[] = {0x702, 0x20B, 0x30B};
@@ -56,6 +56,8 @@ int power_hint_override(power_hint_t hint, void* data) {
interaction(duration, ARRAY_SIZE(resources), resources);
return HINT_HANDLED;
}
+ default:
+ break;
}
return HINT_NONE;
}