From 351c8b257381cefc14b86b4d5de9eb93390f4de4 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sat, 7 Jan 2012 19:32:50 +0000 Subject: 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 --- .../arm/olympus/mrobe-100/lcd-remote-mr100.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c') diff --git a/firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c b/firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c index 1f7ab47a0f..ca4bbde483 100644 --- a/firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c +++ b/firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c @@ -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; +} -- cgit v1.2.3