mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -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
|
|
@ -79,7 +79,7 @@ static uint32_t backlight_pwm_bits; /* Final PWM setting for fade-in */
|
|||
/* Backlight ramping settings */
|
||||
static uint32_t led_ramp_mask = MC13783_LEDMDRAMPDOWN | MC13783_LEDMDRAMPUP;
|
||||
|
||||
bool _backlight_init(void)
|
||||
bool backlight_hw_init(void)
|
||||
{
|
||||
/* Set default LED register value */
|
||||
mc13783_write(MC13783_LED_CONTROL0,
|
||||
|
|
@ -88,7 +88,7 @@ bool _backlight_init(void)
|
|||
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
||||
/* Our PWM and I-Level is different than retailos (but same apparent
|
||||
* brightness), so init to our default. */
|
||||
_backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||
backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||
#else
|
||||
/* Use default PWM */
|
||||
backlight_pwm_bits = mc13783_read(MC13783_LED_CONTROL2) & MC13783_LEDMDDC;
|
||||
|
|
@ -113,7 +113,7 @@ void backlight_set_fade_in(bool value)
|
|||
led_ramp_mask &= ~MC13783_LEDMDRAMPUP;
|
||||
}
|
||||
|
||||
void _backlight_on(void)
|
||||
void backlight_hw_on(void)
|
||||
{
|
||||
static const char regs[2] =
|
||||
{
|
||||
|
|
@ -149,7 +149,7 @@ void _backlight_on(void)
|
|||
}
|
||||
}
|
||||
|
||||
void _backlight_off(void)
|
||||
void backlight_hw_off(void)
|
||||
{
|
||||
uint32_t ctrl0 = MC13783_LED_CONTROL0_BITS | MC13783_LEDEN;
|
||||
|
||||
|
|
@ -173,7 +173,7 @@ void _backlight_off(void)
|
|||
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
||||
/* Assumes that the backlight has been initialized - parameter should
|
||||
* already be range-checked in public interface. */
|
||||
void _backlight_set_brightness(int brightness)
|
||||
void backlight_hw_brightness(int brightness)
|
||||
{
|
||||
uint32_t md = led_md_pwm_table[brightness].md;
|
||||
backlight_pwm_bits = backlight_on_status ?
|
||||
|
|
|
|||
|
|
@ -27,10 +27,10 @@
|
|||
#define BACKLIGHT_FULL_INIT
|
||||
#endif
|
||||
|
||||
bool _backlight_init(void);
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
void _backlight_set_brightness(int brightness);
|
||||
bool backlight_hw_init(void);
|
||||
void backlight_hw_on(void);
|
||||
void backlight_hw_off(void);
|
||||
void backlight_hw_brightness(int brightness);
|
||||
|
||||
void _backlight_lcd_sleep(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ void power_off(void)
|
|||
dptc_stop();
|
||||
|
||||
/* Cut backlight */
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
|
||||
/* Let it fade */
|
||||
sleep(5*HZ/4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue