diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2018-03-26 01:00:20 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-10-23 01:12:56 +0300 |
commit | c3942652f9d6d56e390223934ca7eb8a1ebd7d46 (patch) | |
tree | bbce12695470fb4cdf4ce811f8505fefd1aa2535 /power-8953.c | |
parent | 9cdea7baf4392d87cf0a55d24837f6fd0d6faa96 (diff) | |
download | vendor_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-8953.c')
-rw-r--r-- | power-8953.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/power-8953.c b/power-8953.c index f0d2d6f..ff1e323 100644 --- a/power-8953.c +++ b/power-8953.c @@ -52,11 +52,9 @@ #define MIN_VAL(X, Y) ((X > Y) ? (Y) : (X)) static int video_encode_hint_sent; -static int cam_preview_hint_sent; static int camera_hint_ref_count; static void process_video_encode_hint(void* metadata); -// static void process_cam_preview_hint(void *metadata); static int display_fd; #define SYS_DISPLAY_PWR "/sys/kernel/hbtp/display_pwr" @@ -84,14 +82,14 @@ int power_hint_override(power_hint_t hint, void* data) { process_video_encode_hint(data); return HINT_HANDLED; } + default: + break; } return HINT_NONE; } int set_interactive_override(int on) { char governor[80]; - char tmp_str[NODE_MAX]; - struct video_encode_metadata_t video_encode_metadata; int rc = 0; static const char* display_on = "1"; |