move _remote_backlight_* to common header

remove unused REMOTE_INIT_LCD / REMOTE_DEINIT_LCD

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31607 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2012-01-07 19:32:50 +00:00
parent 6ab12df153
commit 351c8b2573
8 changed files with 14 additions and 45 deletions

View file

@ -65,6 +65,8 @@ void lcd_set_sleep_after_backlight_off(int index);
#endif /* !HAVE_BACKLIGHT */
#ifdef HAVE_REMOTE_LCD
void _remote_backlight_on(void);
void _remote_backlight_off(void);
void remote_backlight_on(void);
void remote_backlight_off(void);
void remote_backlight_set_timeout(int value);

View file

@ -22,7 +22,6 @@
#include "config.h"
#include "system.h"
#include "backlight-target.h"
#include "lcd-remote-target.h"
#define MIN_BRIGHTNESS 0x80ff08ff
@ -63,15 +62,3 @@ void _buttonlight_off(void)
/* turn off all touchpad leds */
GPIOA_OUTPUT_VAL &= ~BUTTONLIGHT_ALL;
}
#ifdef HAVE_REMOTE_LCD
void _remote_backlight_on(void)
{
lcd_remote_backlight(true);
}
void _remote_backlight_off(void)
{
lcd_remote_backlight(false);
}
#endif

View file

@ -486,16 +486,6 @@ void lcd_remote_set_contrast(int val)
rc_status |= RC_UPDATE_CONTROLLER;
}
void lcd_remote_backlight(bool on)
{
if (on)
rc_status |= RC_BACKLIGHT_ON;
else
rc_status &= ~RC_BACKLIGHT_ON;
rc_status |= RC_UPDATE_CONTROLLER;
}
void lcd_remote_off(void)
{
/* should only be used to power off at shutdown */
@ -560,3 +550,15 @@ void lcd_remote_update_rect(int x, int y, int width, int height)
rc_status |= RC_UPDATE_LCD;
}
void _remote_backlight_on(void)
{
rc_status |= RC_BACKLIGHT_ON;
rc_status |= RC_UPDATE_CONTROLLER;
}
void _remote_backlight_off(void)
{
rc_status &= ~RC_BACKLIGHT_ON;
rc_status |= RC_UPDATE_CONTROLLER;
}

View file

@ -21,8 +21,6 @@
#ifndef LCD_REMOTE_TARGET_H
#define LCD_REMOTE_TARGET_H
void lcd_remote_backlight(bool on);
bool lcd_remote_read_device(unsigned char *data);
extern unsigned int rc_status;

View file

@ -21,16 +21,8 @@
#ifndef LCD_REMOTE_TARGET_H
#define LCD_REMOTE_TARGET_H
#define REMOTE_INIT_LCD 1
#define REMOTE_DEINIT_LCD 2
void lcd_remote_powersave(bool on);
#ifndef SIMULATOR
void _remote_backlight_on(void);
void _remote_backlight_off(void);
#endif
void lcd_remote_sleep(void);
int remote_read_device(void);

View file

@ -21,9 +21,6 @@
#ifndef LCD_REMOTE_TARGET_H
#define LCD_REMOTE_TARGET_H
#define REMOTE_INIT_LCD 1
#define REMOTE_DEINIT_LCD 2
void lcd_remote_powersave(bool on);
void lcd_remote_poweroff(void); /* for when remote is plugged during shutdown*/

View file

@ -21,9 +21,6 @@
#ifndef LCD_REMOTE_TARGET_H
#define LCD_REMOTE_TARGET_H
#define REMOTE_INIT_LCD 1
#define REMOTE_DEINIT_LCD 2
#ifdef HAVE_REMOTE_LCD_TICKING
void lcd_remote_emireduce(bool state);
#endif

View file

@ -39,11 +39,5 @@ void _buttonlight_set_brightness(int val);
#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
#endif /* HAVE_BUTTON_LIGHT */
#ifdef HAVE_REMOTE_LCD
void _remote_backlight_on(void);
void _remote_backlight_off(void);
#endif /* HAVE_REMOTE_LCD */
#endif /* BACKLIGHT_SIM_H */