diff options
author | David Turner <digit@android.com> | 2011-04-15 06:23:31 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2011-04-15 06:23:31 -0700 |
commit | 625065063a5756e3f97dba6e6d6b20e8a7171c16 (patch) | |
tree | 95bbf30d8901b33b3fc880853f3fa43f4f06a5d3 /android/hw-control.c | |
parent | 95ea5b25db2dc300db560f9af5edabd1da438de5 (diff) | |
parent | 470f6bd314acbf5c2c8a408f5f00b5ce55d5eab4 (diff) | |
download | external_qemu-625065063a5756e3f97dba6e6d6b20e8a7171c16.zip external_qemu-625065063a5756e3f97dba6e6d6b20e8a7171c16.tar.gz external_qemu-625065063a5756e3f97dba6e6d6b20e8a7171c16.tar.bz2 |
Merge "Add support for hw.lcd.backlight"
Diffstat (limited to 'android/hw-control.c')
-rw-r--r-- | android/hw-control.c | 3 |
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) { |