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

@ -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;