summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRashed Abdel-Tawab <rashed@linux.com>2017-12-31 01:21:40 +0200
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commit42cc4674d7333a37d463875f90a771d162fd7e7a (patch)
treeb680fd882484a2f5c938fb90bad9649fd67dcb43
parenta14bb2764dbf8f9d8848d9afb845a2d439cdcbf8 (diff)
downloadvendor_qcom_opensource_power-42cc4674d7333a37d463875f90a771d162fd7e7a.zip
vendor_qcom_opensource_power-42cc4674d7333a37d463875f90a771d162fd7e7a.tar.gz
vendor_qcom_opensource_power-42cc4674d7333a37d463875f90a771d162fd7e7a.tar.bz2
power: Remove unused arg from power_hint_override/set_interactive_override
Change-Id: If45b59915022b563d4c5c9bf454b02b431a97833
-rw-r--r--power-660.c5
-rw-r--r--power-710.c2
-rw-r--r--power-8084.c2
-rw-r--r--power-8226.c2
-rw-r--r--power-845.c4
-rw-r--r--power-8610.c2
-rw-r--r--power-8909.c2
-rw-r--r--power-8916.c5
-rw-r--r--power-8952.c5
-rw-r--r--power-8953.c5
-rw-r--r--power-8974.c2
-rw-r--r--power-8992.c4
-rw-r--r--power-8994.c4
-rw-r--r--power-8996.c4
-rw-r--r--power-8998.c4
15 files changed, 24 insertions, 28 deletions
diff --git a/power-660.c b/power-660.c
index 5b55568..29e8ec3 100644
--- a/power-660.c
+++ b/power-660.c
@@ -84,8 +84,7 @@ static bool is_target_SDM630()
return is_target_SDM630;
}
-int power_hint_override(struct power_module *module, power_hint_t hint,
- void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
switch(hint) {
@@ -100,7 +99,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint,
return HINT_NONE;
}
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
char governor[80];
char tmp_str[NODE_MAX];
diff --git a/power-710.c b/power-710.c
index 3c5b705..2d33214 100644
--- a/power-710.c
+++ b/power-710.c
@@ -52,7 +52,7 @@
static int display_fd;
#define SYS_DISPLAY_PWR "/sys/kernel/hbtp/display_pwr"
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
static const char *display_on = "1";
static const char *display_off = "0";
diff --git a/power-8084.c b/power-8084.c
index 052da24..b66e09f 100644
--- a/power-8084.c
+++ b/power-8084.c
@@ -52,7 +52,7 @@ static int display_hint2_sent;
static int first_display_off_hint;
extern int display_boost;
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
char governor[80];
diff --git a/power-8226.c b/power-8226.c
index 762f7cc..a5961a2 100644
--- a/power-8226.c
+++ b/power-8226.c
@@ -49,7 +49,7 @@
static int display_hint_sent;
-int power_hint_override(struct power_module *module, power_hint_t hint, void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
switch(hint) {
case POWER_HINT_INTERACTION:
diff --git a/power-845.c b/power-845.c
index 6532c9e..029bd18 100644
--- a/power-845.c
+++ b/power-845.c
@@ -202,7 +202,7 @@ static int process_video_encode_hint(void *metadata)
/* Declare function before use */
void interaction(int duration, int num_args, int opt_list[]);
-int power_hint_override(struct power_module *module, power_hint_t hint, void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
int ret_val = HINT_NONE;
switch(hint) {
@@ -229,7 +229,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint, void *da
return ret_val;
}
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
static const char *display_on = "1";
static const char *display_off = "0";
diff --git a/power-8610.c b/power-8610.c
index 762f7cc..a5961a2 100644
--- a/power-8610.c
+++ b/power-8610.c
@@ -49,7 +49,7 @@
static int display_hint_sent;
-int power_hint_override(struct power_module *module, power_hint_t hint, void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
switch(hint) {
case POWER_HINT_INTERACTION:
diff --git a/power-8909.c b/power-8909.c
index 25ae2a2..5f07841 100644
--- a/power-8909.c
+++ b/power-8909.c
@@ -90,7 +90,7 @@ static void process_video_encode_hint(void *metadata)
}
}
-int power_hint_override(struct power_module *module, power_hint_t hint, void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
switch(hint) {
case POWER_HINT_VIDEO_ENCODE:
diff --git a/power-8916.c b/power-8916.c
index 9006730..6181a27 100644
--- a/power-8916.c
+++ b/power-8916.c
@@ -89,8 +89,7 @@ static int is_target_8916() /* Returns value=8916 if target is 8916 else value 0
return is_target_8916;
}
-int power_hint_override(struct power_module *module, power_hint_t hint,
- void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
switch(hint) {
@@ -114,7 +113,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint,
return HINT_NONE;
}
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
char governor[80];
char tmp_str[NODE_MAX];
diff --git a/power-8952.c b/power-8952.c
index 539dce9..188e0fd 100644
--- a/power-8952.c
+++ b/power-8952.c
@@ -82,8 +82,7 @@ static bool is_target_SDM439() /* Returns value=1 if target is Hathi else value
return is_target_SDM439;
}
-int power_hint_override(struct power_module *module, power_hint_t hint,
- void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
switch(hint) {
@@ -98,7 +97,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint,
return HINT_NONE;
}
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
char governor[80];
char tmp_str[NODE_MAX];
diff --git a/power-8953.c b/power-8953.c
index 3680cbd..cfdb77e 100644
--- a/power-8953.c
+++ b/power-8953.c
@@ -86,8 +86,7 @@ static bool is_target_SDM632() /* Returns value=632 if target is SDM632 else val
return is_target_SDM632;
}
-int power_hint_override(struct power_module *module, power_hint_t hint,
- void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
switch(hint) {
@@ -102,7 +101,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint,
return HINT_NONE;
}
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
char governor[80];
char tmp_str[NODE_MAX];
diff --git a/power-8974.c b/power-8974.c
index 11a16fe..152081a 100644
--- a/power-8974.c
+++ b/power-8974.c
@@ -52,7 +52,7 @@ static int display_hint2_sent;
static int first_display_off_hint;
extern int display_boost;
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
char governor[80];
diff --git a/power-8992.c b/power-8992.c
index 8dc5933..4fe15a4 100644
--- a/power-8992.c
+++ b/power-8992.c
@@ -100,7 +100,7 @@ static int process_video_encode_hint(void *metadata)
return HINT_NONE;
}
-int power_hint_override(struct power_module *module, power_hint_t hint, void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
int ret_val = HINT_NONE;
switch(hint) {
@@ -113,7 +113,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint, void *da
return ret_val;
}
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
char governor[80];
diff --git a/power-8994.c b/power-8994.c
index db639d3..07ed174 100644
--- a/power-8994.c
+++ b/power-8994.c
@@ -100,7 +100,7 @@ static int process_video_encode_hint(void *metadata)
return HINT_NONE;
}
-int power_hint_override(struct power_module *module, power_hint_t hint, void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
int ret_val = HINT_NONE;
switch(hint) {
@@ -113,7 +113,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint, void *da
return ret_val;
}
-int set_interactive_override(struct power_module *module, int on)
+int set_interactive_override(int on)
{
char governor[80];
diff --git a/power-8996.c b/power-8996.c
index eb8a247..f8d4fe6 100644
--- a/power-8996.c
+++ b/power-8996.c
@@ -128,7 +128,7 @@ static int process_video_encode_hint(void *metadata)
return HINT_NONE;
}
-int power_hint_override(struct power_module *UNUSED(module), power_hint_t hint, void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
int ret_val = HINT_NONE;
switch(hint) {
@@ -141,7 +141,7 @@ int power_hint_override(struct power_module *UNUSED(module), power_hint_t hint,
return ret_val;
}
-int set_interactive_override(struct power_module *UNUSED(module), int on)
+int set_interactive_override(int on)
{
return HINT_HANDLED; /* Don't excecute this code path, not in use */
char governor[80];
diff --git a/power-8998.c b/power-8998.c
index b795897..e93c36a 100644
--- a/power-8998.c
+++ b/power-8998.c
@@ -193,7 +193,7 @@ static int process_video_encode_hint(void *metadata)
return HINT_NONE;
}
-int power_hint_override(struct power_module *UNUSED(module), power_hint_t hint, void *data)
+int power_hint_override(power_hint_t hint, void *data)
{
int ret_val = HINT_NONE;
switch(hint) {
@@ -219,7 +219,7 @@ int power_hint_override(struct power_module *UNUSED(module), power_hint_t hint,
return ret_val;
}
-int set_interactive_override(struct power_module *UNUSED(module), int UNUSED(on))
+int set_interactive_override(int UNUSED(on))
{
return HINT_HANDLED; /* Don't excecute this code path, not in use */
}