forked from len0rd/rockbox
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
|
|
@ -26,15 +26,15 @@
|
|||
#include "tcc780x.h"
|
||||
#include "pmu-target.h"
|
||||
|
||||
int _backlight_init(void)
|
||||
int backlight_hw_init(void)
|
||||
{
|
||||
_backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||
backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||
/* set backlight on by default, since the screen is unreadable without it */
|
||||
_backlight_on();
|
||||
backlight_hw_on();
|
||||
return true;
|
||||
}
|
||||
|
||||
void _backlight_set_brightness(int brightness)
|
||||
void backlight_hw_brightness(int brightness)
|
||||
{
|
||||
int level = disable_irq_save();
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ void _backlight_set_brightness(int brightness)
|
|||
restore_irq(level);
|
||||
}
|
||||
|
||||
void _backlight_on(void)
|
||||
void backlight_hw_on(void)
|
||||
{
|
||||
if (get_pmu_type() == PCF50606)
|
||||
{
|
||||
|
|
@ -70,7 +70,7 @@ void _backlight_on(void)
|
|||
}
|
||||
}
|
||||
|
||||
void _backlight_off(void)
|
||||
void backlight_hw_off(void)
|
||||
{
|
||||
if (get_pmu_type() == PCF50606)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#ifndef BACKLIGHT_TARGET_H
|
||||
#define BACKLIGHT_TARGET_H
|
||||
|
||||
int _backlight_init(void);
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
void _backlight_set_brightness(int brightness);
|
||||
int backlight_hw_init(void);
|
||||
void backlight_hw_on(void);
|
||||
void backlight_hw_off(void);
|
||||
void backlight_hw_brightness(int brightness);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ int button_read_device(int *data)
|
|||
if (!(GPIOA & 0x4))
|
||||
btn |= BUTTON_POWER;
|
||||
|
||||
if (btn & BUTTON_TOUCHSCREEN && !is_backlight_on(true))
|
||||
if (btn & BUTTON_TOUCHSCREEN && !isbacklight_hw_on(true))
|
||||
old_data = *data = 0;
|
||||
|
||||
return btn;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ void power_init(void)
|
|||
void power_off(void)
|
||||
{
|
||||
/* Turn the backlight off first to avoid a bright stripe on power-off */
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
sleep(HZ/10);
|
||||
|
||||
/* Power off the player using the same mechanism as the OF */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue