summaryrefslogtreecommitdiffstats
path: root/firmware/backlight-sw-fading.c
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 /firmware/backlight-sw-fading.c
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 'firmware/backlight-sw-fading.c')
-rw-r--r--firmware/backlight-sw-fading.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/backlight-sw-fading.c b/firmware/backlight-sw-fading.c
index 2aff2f9c27..c336d40458 100644
--- a/firmware/backlight-sw-fading.c
+++ b/firmware/backlight-sw-fading.c
@@ -28,7 +28,7 @@
#include "backlight-sw-fading.h"
/* To adapt a target do:
- * - make sure _backlight_on doesn't set the brightness to something other than
+ * - make sure backlight_hw_on doesn't set the brightness to something other than
* the previous value (lowest brightness in most cases)
* add proper #defines for software fading
*/
@@ -46,7 +46,7 @@ static bool _backlight_fade_up(void)
{
if (LIKELY(current_brightness < backlight_brightness))
{
- _backlight_set_brightness(++current_brightness);
+ backlight_hw_brightness(++current_brightness);
}
return(current_brightness >= backlight_brightness);
}
@@ -56,14 +56,14 @@ static bool _backlight_fade_down(void)
{
if (LIKELY(current_brightness > MIN_BRIGHTNESS_SETTING))
{
- _backlight_set_brightness(--current_brightness);
+ backlight_hw_brightness(--current_brightness);
return false;
}
else
{
/* decrement once more, since backlight is off */
current_brightness--;
- _backlight_off();
+ backlight_hw_off();
return true;
}
}