mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Get rid of stupid _backlight_* function names
_remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
This commit is contained in:
parent
2a3e1628a5
commit
89ba7e818c
148 changed files with 679 additions and 687 deletions
|
|
@ -38,7 +38,7 @@ static int brightness = 1; /* 1 to 32 */
|
|||
static int current_dim = 16; /* default after enabling the backlight dimmer */
|
||||
static bool enabled = false;
|
||||
|
||||
void _backlight_set_brightness(int val)
|
||||
void backlight_hw_brightness(int val)
|
||||
{
|
||||
int oldlevel;
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ void _backlight_hw_enable(bool on)
|
|||
GPIO_SET_BITWISE(GPIOD_OUTPUT_VAL, 0x80);
|
||||
sleep(HZ/100);
|
||||
current_dim = 16;
|
||||
_backlight_set_brightness(brightness);
|
||||
backlight_hw_brightness(brightness);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -116,7 +116,7 @@ void _backlight_led_off(void)
|
|||
GPIO_CLEAR_BITWISE(GPIOL_OUTPUT_VAL, 0x80);
|
||||
}
|
||||
|
||||
bool _backlight_init(void)
|
||||
bool backlight_hw_init(void)
|
||||
{
|
||||
GPIO_SET_BITWISE(GPIOB_ENABLE, 0x08);
|
||||
GPIO_SET_BITWISE(GPIOB_OUTPUT_EN, 0x08);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue