From 548a175182238e2612af0892ca5475aba5b02c44 Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Mon, 28 Dec 2015 10:08:58 +0900 Subject: Improve max brightness handling If we can detect the directory, why don't we detect maximum as well? Additional patch by: Matt Mower Replace clunky /nobrightness handling Cleanup TWFunc::Set_Brightness() and blanktimer::getBrightness() a bit, primarily for the purpose of relying on the value in tw_has_brightnesss_file instead of checking for a phony brightness path. Change-Id: Ib22595df53cefa8db7a1172a581984c42ad461c6 --- variables.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'variables.h') diff --git a/variables.h b/variables.h index f7304b474..e66f8c31f 100644 --- a/variables.h +++ b/variables.h @@ -172,10 +172,6 @@ #define CUSTOM_LUN_FILE "/sys/class/android_usb/android0/f_mass_storage/lun%d/file" #endif -#ifndef TW_BRIGHTNESS_PATH -#define TW_BRIGHTNESS_PATH /nobrightness -#endif - // For OpenRecoveryScript #define SCRIPT_FILE_CACHE "/cache/recovery/openrecoveryscript" #define SCRIPT_FILE_TMP "/tmp/openrecoveryscript" -- cgit v1.2.3