summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-03 19:54:25 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-03 19:54:25 +0000
commit58eb784a5d1f0ac800e656d5dfa3a1bff8fb2657 (patch)
tree084c7b7c5d374fbfef2f8cddb3673a3b2a26a7df /firmware/backlight.c
parent0d0cc039f88ced4f6db5c4468b19913f52cd08c8 (diff)
downloadrockbox-58eb784a5d1f0ac800e656d5dfa3a1bff8fb2657.tar.gz
rockbox-58eb784a5d1f0ac800e656d5dfa3a1bff8fb2657.zip
Straighten out some powermanagement stuff. Give target complete control over how power inputs are sensed. Clean SIMULATOR stuff out of target files. Get rid of USB charging option on targets that don't support it or don't implement it yet. Menu string remains to avoid language incompatibility but should be removed on next cleanup for targets not using it (notice in english.lang). global_settings becomes incompatible for some builds and so plugin API version is incremented.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19315 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 1208973944..07cc9532be 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -488,11 +488,7 @@ static void backlight_update_state(void)
488 else 488 else
489#endif 489#endif
490#if CONFIG_CHARGING 490#if CONFIG_CHARGING
491 if (charger_inserted() 491 if (power_input_present())
492#ifdef HAVE_USB_POWER
493 || usb_powered()
494#endif
495 )
496 backlight_timeout = backlight_timeout_plugged; 492 backlight_timeout = backlight_timeout_plugged;
497 else 493 else
498#endif 494#endif
@@ -532,11 +528,7 @@ static void remote_backlight_update_state(void)
532 else 528 else
533#endif 529#endif
534#if CONFIG_CHARGING 530#if CONFIG_CHARGING
535 if (charger_inserted() 531 if (power_input_present())
536#ifdef HAVE_USB_POWER
537 || usb_powered()
538#endif
539 )
540 remote_backlight_timeout = remote_backlight_timeout_plugged; 532 remote_backlight_timeout = remote_backlight_timeout_plugged;
541 else 533 else
542#endif 534#endif