Various minor cleanups

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27647 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-08-01 10:07:05 +00:00
parent 9b6d895276
commit 3a8e7e644b
2 changed files with 5 additions and 6 deletions

View file

@ -973,7 +973,6 @@ void backlight_init(void)
void backlight_on(void) {}
void backlight_off(void) {}
void buttonlight_on(void) {}
void backlight_set_timeout(int value) {(void)value;}
bool is_backlight_on(bool ignore_always_off)
@ -995,7 +994,12 @@ bool is_remote_backlight_on(bool ignore_always_off)
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
void backlight_set_brightness(int val) { (void)val; }
#endif
#ifdef HAVE_BUTTONLIGHT
void buttonlight_on(void) {}
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
void buttonlight_set_brightness(int val) { (void)val; }
#endif
#endif /* HAVE_BUTTONLIGHT */
#endif /* defined(HAVE_BACKLIGHT) && defined(BACKLIGHT_FULL_INIT) */

View file

@ -18,13 +18,8 @@
* KIND, either express or implied.
*
****************************************************************************/
#include <stdbool.h>
#include "config.h"
#if (CONFIG_STORAGE & STORAGE_MMC)
#include "ata_mmc.h"
#else
#include "sdmmc.h"
#endif
/* helper function to extract n (<=32) bits from an arbitrary position.
counting from MSB to LSB */