power: Remove unused arg from power_hint_override/set_interactive_override

Change-Id: If45b59915022b563d4c5c9bf454b02b431a97833
This commit is contained in:
Rashed Abdel-Tawab
2017-12-31 01:21:40 +02:00
committed by Michael Bestas
parent 069801dcb7
commit cd6e36030a
7 changed files with 13 additions and 16 deletions

View File

@@ -84,8 +84,7 @@ static bool is_target_SDM630()
return is_target_SDM630; return is_target_SDM630;
} }
int power_hint_override(struct power_module *module, power_hint_t hint, int power_hint_override(power_hint_t hint, void *data)
void *data)
{ {
switch(hint) { switch(hint) {
@@ -100,7 +99,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint,
return HINT_NONE; return HINT_NONE;
} }
int set_interactive_override(struct power_module *module, int on) int set_interactive_override(int on)
{ {
char governor[80]; char governor[80];
char tmp_str[NODE_MAX]; char tmp_str[NODE_MAX];

View File

@@ -49,7 +49,7 @@
#include "performance.h" #include "performance.h"
#include "power-common.h" #include "power-common.h"
int set_interactive_override(struct power_module *module, int on) int set_interactive_override(int on)
{ {
static int set_i_count = 0; static int set_i_count = 0;

View File

@@ -199,7 +199,7 @@ static int process_video_encode_hint(void *metadata)
/* Declare function before use */ /* Declare function before use */
void interaction(int duration, int num_args, int opt_list[]); 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; int ret_val = HINT_NONE;
switch(hint) { switch(hint) {
@@ -226,7 +226,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint, void *da
return ret_val; return ret_val;
} }
int set_interactive_override(struct power_module *module, int on) int set_interactive_override(int on)
{ {
static int set_i_count = 0; static int set_i_count = 0;

View File

@@ -80,8 +80,7 @@ static bool is_target_SDM439() /* Returns value=1 if target is Hathi else value
return is_target_SDM439; return is_target_SDM439;
} }
int power_hint_override(struct power_module *module, power_hint_t hint, int power_hint_override(power_hint_t hint, void *data)
void *data)
{ {
switch(hint) { switch(hint) {
@@ -96,7 +95,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint,
return HINT_NONE; return HINT_NONE;
} }
int set_interactive_override(struct power_module *module, int on) int set_interactive_override(int on)
{ {
char governor[80]; char governor[80];
char tmp_str[NODE_MAX]; char tmp_str[NODE_MAX];

View File

@@ -83,8 +83,7 @@ static bool is_target_SDM632() /* Returns value=632 if target is SDM632 else val
return is_target_SDM632; return is_target_SDM632;
} }
int power_hint_override(struct power_module *module, power_hint_t hint, int power_hint_override(power_hint_t hint, void *data)
void *data)
{ {
switch(hint) { switch(hint) {
@@ -99,7 +98,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint,
return HINT_NONE; return HINT_NONE;
} }
int set_interactive_override(struct power_module *module, int on) int set_interactive_override(int on)
{ {
char governor[80]; char governor[80];
char tmp_str[NODE_MAX]; char tmp_str[NODE_MAX];

View File

@@ -128,7 +128,7 @@ static int process_video_encode_hint(void *metadata)
return HINT_NONE; 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; int ret_val = HINT_NONE;
switch(hint) { switch(hint) {
@@ -141,7 +141,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint, void *da
return ret_val; return ret_val;
} }
int set_interactive_override(struct power_module *module, int on) int set_interactive_override(int on)
{ {
return HINT_HANDLED; /* Don't excecute this code path, not in use */ return HINT_HANDLED; /* Don't excecute this code path, not in use */
char governor[80]; char governor[80];

View File

@@ -193,7 +193,7 @@ static int process_video_encode_hint(void *metadata)
return HINT_NONE; 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; int ret_val = HINT_NONE;
switch(hint) { switch(hint) {
@@ -219,7 +219,7 @@ int power_hint_override(struct power_module *module, power_hint_t hint, void *da
return ret_val; return ret_val;
} }
int set_interactive_override(struct power_module *module, int on) int set_interactive_override(int on)
{ {
return HINT_HANDLED; /* Don't excecute this code path, not in use */ return HINT_HANDLED; /* Don't excecute this code path, not in use */
} }