aboutsummaryrefslogtreecommitdiffstats
path: root/android/hw-control.c
diff options
context:
space:
mode:
authorTim Wan <tim.wan@sonyericsson.com>2011-04-13 15:18:08 +0200
committerJohan Redestig <johan.redestig@sonyericsson.com>2011-04-15 11:43:00 +0200
commit470f6bd314acbf5c2c8a408f5f00b5ce55d5eab4 (patch)
tree95bbf30d8901b33b3fc880853f3fa43f4f06a5d3 /android/hw-control.c
parent95ea5b25db2dc300db560f9af5edabd1da438de5 (diff)
downloadexternal_qemu-470f6bd314acbf5c2c8a408f5f00b5ce55d5eab4.zip
external_qemu-470f6bd314acbf5c2c8a408f5f00b5ce55d5eab4.tar.gz
external_qemu-470f6bd314acbf5c2c8a408f5f00b5ce55d5eab4.tar.bz2
Add support for hw.lcd.backlight
Change-Id: I02dc12caa76c86de5d294b6fc857ae37b74f0130
Diffstat (limited to 'android/hw-control.c')
-rw-r--r--android/hw-control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/hw-control.c b/android/hw-control.c
index 6dac8c2..9180383 100644
--- a/android/hw-control.c
+++ b/android/hw-control.c
@@ -23,6 +23,7 @@
#include "android/hw-control.h"
#include "cbuffer.h"
#include "android/hw-qemud.h"
+#include "android/globals.h"
#include "android/utils/misc.h"
#include "android/utils/debug.h"
#include "qemu-char.h"
@@ -98,7 +99,7 @@ hw_control_do_query( HwControl* h,
q = if_starts_with( query, querylen, "power:light:brightness:" );
if (q != NULL) {
- if (h->client_funcs.light_brightness) {
+ if (h->client_funcs.light_brightness && android_hw->hw_lcd_backlight) {
char* qq = strchr((const char*)q, ':');
int value;
if (qq == NULL) {