From 85e00bf2ce6aa080a42ad6f8dd47733b514cceac Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sun, 26 Jun 2016 21:29:34 +0800 Subject: power: Simplify display_hint_sent Check for whether the display hint has been sent at the start of the set_interactive() function in the common powerHAL. This gets rid of the need to replicate the same variable in every target-specific powerHAL that implements the set_interactive_override() function. Change-Id: If7dd11fcb578211f4f83847f9257232c4138ce53 --- power-8226.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'power-8226.c') diff --git a/power-8226.c b/power-8226.c index 8c3a445..310a3db 100644 --- a/power-8226.c +++ b/power-8226.c @@ -47,8 +47,6 @@ #include "power-common.h" #include "utils.h" -static int display_hint_sent; - int power_hint_override(power_hint_t hint, void* data) { switch (hint) { case POWER_HINT_INTERACTION: { -- cgit v1.2.3