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

@ -23,15 +23,15 @@
#include "tcc77x.h"
#define _backlight_init() true
#define backlight_hw_init() true
static inline void _backlight_on(void)
static inline void backlight_hw_on(void)
{
/* Enable backlight */
GPIOE |= 0x2;
}
static inline void _backlight_off(void)
static inline void backlight_hw_off(void)
{
/* Disable backlight */
GPIOE &= ~0x2;

View file

@ -26,7 +26,7 @@
void power_touch_panel(bool on);
static inline bool _backlight_init(void)
static inline bool backlight_hw_init(void)
{
GPIOD_DIR |= 0x2;
/* set backlight on by default, since the screen is unreadable without it */
@ -34,13 +34,13 @@ static inline bool _backlight_init(void)
return true;
}
static inline void _backlight_on(void)
static inline void backlight_hw_on(void)
{
GPIOD |= 0x2;
power_touch_panel(true);
}
static inline void _backlight_off(void)
static inline void backlight_hw_off(void)
{
GPIOD &= ~0x2;
power_touch_panel(false);

View file

@ -23,15 +23,15 @@
#include "tcc77x.h"
#define _backlight_init() true
#define backlight_hw_init() true
static inline void _backlight_on(void)
static inline void backlight_hw_on(void)
{
/* Enable backlight */
GPIOD |= 0x10;
}
static inline void _backlight_off(void)
static inline void backlight_hw_off(void)
{
/* Disable backlight */
GPIOD &= ~0x10;

View file

@ -23,19 +23,19 @@
#include "tcc77x.h"
static inline bool _backlight_init(void)
static inline bool backlight_hw_init(void)
{
GPIOA_DIR |= 0x40;
return true;
}
static inline void _backlight_on(void)
static inline void backlight_hw_on(void)
{
/* Enable backlight */
GPIOA |= 0x40;
}
static inline void _backlight_off(void)
static inline void backlight_hw_off(void)
{
/* Disable backlight */
GPIOA &= ~0x40;