summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2015-01-09 00:22:40 +0100
committerGerrit Rockbox <gerrit@rockbox.org>2015-01-12 11:09:27 +0100
commit89ba7e818c0d96b779b02bc7b31c0c6a19294a46 (patch)
tree19f7326e1f27f4bd403c4437572b579add5b61bb /uisimulator
parent2a3e1628a50b9de7c1462ee95eb79937795f5409 (diff)
downloadrockbox-89ba7e818c0d96b779b02bc7b31c0c6a19294a46.tar.gz
rockbox-89ba7e818c0d96b779b02bc7b31c0c6a19294a46.tar.bz2
rockbox-89ba7e818c0d96b779b02bc7b31c0c6a19294a46.zip
Get rid of stupid _backlight_* function names
_remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/backlight-sim.c18
-rw-r--r--uisimulator/common/backlight-sim.h14
2 files changed, 16 insertions, 16 deletions
diff --git a/uisimulator/common/backlight-sim.c b/uisimulator/common/backlight-sim.c
index f60a218c41..0d6440b7f3 100644
--- a/uisimulator/common/backlight-sim.c
+++ b/uisimulator/common/backlight-sim.c
@@ -30,7 +30,7 @@ extern void lcd_awake(void);
/* in uisimulator/sdl/lcd-bitmap.c and lcd-charcell.c */
extern void sim_backlight(int value);
-bool _backlight_init(void)
+bool backlight_hw_init(void)
{
return true;
}
@@ -45,7 +45,7 @@ static inline int normalize_backlight(int val)
(MAX_BRIGHTNESS_SETTING - MIN_BRIGHTNESS_SETTING + 1);
}
-void _backlight_set_brightness(int val)
+void backlight_hw_brightness(int val)
{
sim_backlight(normalize_backlight(val));
}
@@ -53,7 +53,7 @@ void _backlight_set_brightness(int val)
#endif /* HAVE_BACKLIGHT_BRIGHTNESS */
-void _backlight_on(void)
+void backlight_hw_on(void)
{
#if defined(HAVE_LCD_ENABLE)
lcd_enable(true);
@@ -72,7 +72,7 @@ void _backlight_on(void)
#endif
}
-void _backlight_off(void)
+void backlight_hw_off(void)
{
sim_backlight(0);
#ifdef HAVE_LCD_ENABLE
@@ -82,16 +82,16 @@ void _backlight_off(void)
#ifdef HAVE_BUTTON_LIGHT
-void _buttonlight_on(void)
+void buttonlight_hw_on(void)
{
}
-void _buttonlight_off(void)
+void buttonlight_hw_off(void)
{
}
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
-void _buttonlight_set_brightness(int val)
+void buttonlight_hw_brightness(int val)
{
(void)val;
}
@@ -99,12 +99,12 @@ void _buttonlight_set_brightness(int val)
#endif /* HAVE_BUTTON_LIGHT */
#ifdef HAVE_REMOTE_LCD
-void _remote_backlight_on(void)
+void remote_backlight_hw_on(void)
{
sim_remote_backlight(100);
}
-void _remote_backlight_off(void)
+void remote_backlight_hw_off(void)
{
sim_remote_backlight(0);
}
diff --git a/uisimulator/common/backlight-sim.h b/uisimulator/common/backlight-sim.h
index 4a97752f75..f7e35dcc75 100644
--- a/uisimulator/common/backlight-sim.h
+++ b/uisimulator/common/backlight-sim.h
@@ -24,18 +24,18 @@
#include "config.h"
-bool _backlight_init(void);
-void _backlight_on(void);
-void _backlight_off(void);
+bool backlight_hw_init(void);
+void backlight_hw_on(void);
+void backlight_hw_off(void);
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
-void _backlight_set_brightness(int val);
+void backlight_hw_brightness(int val);
#endif /* HAVE_BACKLIGHT_BRIGHTNESS */
#ifdef HAVE_BUTTON_LIGHT
-void _buttonlight_on(void);
-void _buttonlight_off(void);
+voidbuttonlight_hw_on(void);
+voidbuttonlight_hw_off(void);
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
-void _buttonlight_set_brightness(int val);
+voidbuttonlight_hw_set_brightness(int val);
#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
#endif /* HAVE_BUTTON_LIGHT */