Merge "Remove default VR brightness implementation in lights.c" into pi-dev am: 9b5df566af

am: 28dcc51f3c

Change-Id: I30e39112dbac1a600e2b9768b551fbde5ef44f20
This commit is contained in:
Santos Cordon
2018-04-17 13:27:56 -07:00
committed by android-build-merger

View File

@@ -39,8 +39,6 @@
#define LIGHTS_SUPPORT_BATTERY 0
#define CG_COLOR_ID_PROPERTY "ro.boot.hardware.color"
#define LP_MODE_BRIGHTNESS_PROPERTY "sys.display.low_persistence_mode_brightness"
static pthread_once_t g_init = PTHREAD_ONCE_INIT;
static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER;
static struct light_state_t g_notification;
@@ -196,12 +194,6 @@ set_light_backlight(struct light_device_t* dev,
ALOGE("%s: Failed to write to %s: %s\n", __FUNCTION__, PERSISTENCE_FILE,
strerror(errno));
}
if (lpEnabled != 0) {
// Try to get the brigntess though property, otherwise it will
// set the default brightness, which is defined in BoardConfig.mk.
brightness = property_get_int32(LP_MODE_BRIGHTNESS_PROPERTY,
DEFAULT_LOW_PERSISTENCE_MODE_BRIGHTNESS);
}
}
g_last_backlight_mode = state->brightnessMode;