aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Pasanen <dan.pasanen@gmail.com>2015-07-16 09:49:39 -0500
committerdoc HD <doc.divxm@gmail.com>2015-08-05 10:38:02 +0300
commit74d416eece395232c8c7bb265f3ffcb65299426c (patch)
treef1b67686e9ade364ddf237f49ed66d6b2b047c2a
parent56b3b5b838e7ac884fea788c19107ebbb61ae426 (diff)
power: fix warning
Change-Id: I4342e85c5dc5b655a235f1be742dcbc2df691d50
-rw-r--r--power/power.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/power/power.c b/power/power.c
index 18bad9b..7eebaf5 100644
--- a/power/power.c
+++ b/power/power.c
@@ -26,6 +26,8 @@
#include <hardware/hardware.h>
#include <hardware/power.h>
+#define UNUSED __attribute__((unused))
+
#define SCALING_GOVERNOR_PATH "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
#define BOOSTPULSE_INTERACTIVE "/sys/devices/system/cpu/cpufreq/interactive/boostpulse"
#define NOTIFY_ON_MIGRATE "/dev/cpuctl/cpu.notify_on_migrate"
@@ -105,7 +107,7 @@ static int get_scaling_governor() {
return 0;
}
-static void cm_power_set_interactive(__attribute__((unused)) struct power_module *module, int on)
+static void cm_power_set_interactive(UNUSED struct power_module *module, UNUSED int on)
{
//sysfs_write(NOTIFY_ON_MIGRATE, on ? "1" : "0");
}
@@ -208,7 +210,7 @@ static void cm_power_hint(struct power_module *module, power_hint_t hint,
}
}
-static void cm_power_init(__attribute__((unused)) struct power_module *module)
+static void cm_power_init(UNUSED struct power_module *module)
{
get_scaling_governor();
configure_governor();
@@ -238,4 +240,4 @@ struct cm_power_module HAL_MODULE_INFO_SYM = {
.lock = PTHREAD_MUTEX_INITIALIZER,
.boostpulse_fd = -1,
.boostpulse_warned = 0,
-}; \ No newline at end of file
+};