From 58eb784a5d1f0ac800e656d5dfa3a1bff8fb2657 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 3 Dec 2008 19:54:25 +0000 Subject: 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 --- firmware/backlight.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'firmware/backlight.c') diff --git a/firmware/backlight.c b/firmware/backlight.c index 1208973..07cc953 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -488,11 +488,7 @@ static void backlight_update_state(void) else #endif #if CONFIG_CHARGING - if (charger_inserted() -#ifdef HAVE_USB_POWER - || usb_powered() -#endif - ) + if (power_input_present()) backlight_timeout = backlight_timeout_plugged; else #endif @@ -532,11 +528,7 @@ static void remote_backlight_update_state(void) else #endif #if CONFIG_CHARGING - if (charger_inserted() -#ifdef HAVE_USB_POWER - || usb_powered() -#endif - ) + if (power_input_present()) remote_backlight_timeout = remote_backlight_timeout_plugged; else #endif -- cgit v1.1