Get rid of stupid _backlight_* function names

_remote_backlight_* and _buttonlight_* are cleaned as well

Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
This commit is contained in:
Marcin Bukat 2015-01-09 00:22:40 +01:00 committed by Gerrit Rockbox
parent 2a3e1628a5
commit 89ba7e818c
148 changed files with 679 additions and 687 deletions

View file

@ -26,12 +26,12 @@
#include "ascodec.h"
#include "as3514.h"
void _backlight_set_brightness(int brightness)
void backlight_hw_brightness(int brightness)
{
ascodec_write_pmu(AS3543_BACKLIGHT, 2, brightness * 10);
}
bool _backlight_init(void)
bool backlight_hw_init(void)
{
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x80);
ascodec_write_pmu(AS3543_BACKLIGHT, 2, backlight_brightness * 10);
@ -49,7 +49,7 @@ bool _backlight_init(void)
return true;
}
void _backlight_on(void)
void backlight_hw_on(void)
{
#ifdef HAVE_LCD_ENABLE
lcd_enable(true); /* power on lcd + visible display */
@ -57,7 +57,7 @@ void _backlight_on(void)
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x80);
}
void _backlight_off(void)
void backlight_hw_off(void)
{
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x0);
#ifdef HAVE_LCD_ENABLE
@ -65,7 +65,7 @@ void _backlight_off(void)
#endif
}
void _buttonlight_on(void)
void buttonlight_hw_on(void)
{
if (amsv2_variant == 0)
{
@ -77,7 +77,7 @@ void _buttonlight_on(void)
}
}
void _buttonlight_off(void)
void buttonlight_hw_off(void)
{
if (amsv2_variant == 0)
{

View file

@ -25,13 +25,13 @@
#include "config.h"
#include "ascodec.h"
bool _backlight_init(void);
void _backlight_on(void);
void _backlight_off(void);
#define _backlight_panic_on() _backlight_on()
void _backlight_set_brightness(int brightness);
bool backlight_hw_init(void);
void backlight_hw_on(void);
void backlight_hw_off(void);
#define _backlight_panic_on() backlight_hw_on()
void backlight_hw_brightness(int brightness);
#ifdef HAVE_BUTTON_LIGHT
void _buttonlight_on(void);
void _buttonlight_off(void);
void buttonlight_hw_on(void);
void buttonlight_hw_off(void);
#endif
#endif