mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -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
|
|
@ -98,7 +98,7 @@ void _backlight_pwm(int on)
|
|||
}
|
||||
}
|
||||
|
||||
bool _backlight_init(void)
|
||||
bool backlight_hw_init(void)
|
||||
{
|
||||
GPIOA_DIR |= 1<<5;
|
||||
if (c200v2_variant == 1) {
|
||||
|
|
@ -109,14 +109,14 @@ bool _backlight_init(void)
|
|||
return true;
|
||||
}
|
||||
|
||||
void _backlight_set_brightness(int brightness)
|
||||
void backlight_hw_brightness(int brightness)
|
||||
{
|
||||
backlight_level = brightness_table[brightness];
|
||||
|
||||
if (brightness > 0)
|
||||
_backlight_on();
|
||||
backlight_hw_on();
|
||||
else
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
}
|
||||
|
||||
static void _pwm_on(void)
|
||||
|
|
@ -130,7 +130,7 @@ static void _pwm_off(void)
|
|||
_set_timer2_pwm_ratio(0);
|
||||
}
|
||||
|
||||
void _backlight_on(void)
|
||||
void backlight_hw_on(void)
|
||||
{
|
||||
if (backlight_is_on == 1) {
|
||||
/* Update pwm ratio in case user changed the brightness */
|
||||
|
|
@ -146,7 +146,7 @@ void _backlight_on(void)
|
|||
backlight_is_on = 1;
|
||||
}
|
||||
|
||||
void _backlight_off(void)
|
||||
void backlight_hw_off(void)
|
||||
{
|
||||
if (backlight_is_on == 0)
|
||||
return;
|
||||
|
|
@ -159,7 +159,7 @@ void _backlight_off(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
void _buttonlight_on(void)
|
||||
void buttonlight_hw_on(void)
|
||||
{
|
||||
if (buttonlight_is_on == 1)
|
||||
return;
|
||||
|
|
@ -169,7 +169,7 @@ void _buttonlight_on(void)
|
|||
buttonlight_is_on = 1;
|
||||
}
|
||||
|
||||
void _buttonlight_off(void)
|
||||
void buttonlight_hw_off(void)
|
||||
{
|
||||
if (buttonlight_is_on == 0)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -23,22 +23,22 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
bool _backlight_init(void);
|
||||
bool backlight_hw_init(void);
|
||||
void _backlight_pwm(int on);
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
void backlight_hw_on(void);
|
||||
void backlight_hw_off(void);
|
||||
|
||||
static inline void _backlight_panic_on(void)
|
||||
{
|
||||
_backlight_on();
|
||||
backlight_hw_on();
|
||||
_backlight_pwm(1);
|
||||
}
|
||||
|
||||
void _backlight_set_brightness(int brightness);
|
||||
void backlight_hw_brightness(int brightness);
|
||||
int __backlight_is_on(void);
|
||||
|
||||
void _buttonlight_on(void);
|
||||
void _buttonlight_off(void);
|
||||
void buttonlight_hw_on(void);
|
||||
void buttonlight_hw_off(void);
|
||||
|
||||
/*
|
||||
* FIXME: This may be better off in kernel.h, but...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue