summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/tcc77x
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2015-01-09 00:22:40 +0100
committerGerrit Rockbox <gerrit@rockbox.org>2015-01-12 11:09:27 +0100
commit89ba7e818c0d96b779b02bc7b31c0c6a19294a46 (patch)
tree19f7326e1f27f4bd403c4437572b579add5b61bb /firmware/target/arm/tcc77x
parent2a3e1628a50b9de7c1462ee95eb79937795f5409 (diff)
downloadrockbox-89ba7e818c0d96b779b02bc7b31c0c6a19294a46.tar.gz
rockbox-89ba7e818c0d96b779b02bc7b31c0c6a19294a46.tar.bz2
rockbox-89ba7e818c0d96b779b02bc7b31c0c6a19294a46.zip
Get rid of stupid _backlight_* function names
_remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
Diffstat (limited to 'firmware/target/arm/tcc77x')
-rw-r--r--firmware/target/arm/tcc77x/c100/backlight-target.h6
-rw-r--r--firmware/target/arm/tcc77x/iaudio7/backlight-target.h6
-rw-r--r--firmware/target/arm/tcc77x/logikdax/backlight-target.h6
-rw-r--r--firmware/target/arm/tcc77x/m200/backlight-target.h6
4 files changed, 12 insertions, 12 deletions
diff --git a/firmware/target/arm/tcc77x/c100/backlight-target.h b/firmware/target/arm/tcc77x/c100/backlight-target.h
index 738a2f80ab..7ae71022f0 100644
--- a/firmware/target/arm/tcc77x/c100/backlight-target.h
+++ b/firmware/target/arm/tcc77x/c100/backlight-target.h
@@ -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;
diff --git a/firmware/target/arm/tcc77x/iaudio7/backlight-target.h b/firmware/target/arm/tcc77x/iaudio7/backlight-target.h
index 9a6182ff02..0b227cd11c 100644
--- a/firmware/target/arm/tcc77x/iaudio7/backlight-target.h
+++ b/firmware/target/arm/tcc77x/iaudio7/backlight-target.h
@@ -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);
diff --git a/firmware/target/arm/tcc77x/logikdax/backlight-target.h b/firmware/target/arm/tcc77x/logikdax/backlight-target.h
index 7630a8332e..202e118606 100644
--- a/firmware/target/arm/tcc77x/logikdax/backlight-target.h
+++ b/firmware/target/arm/tcc77x/logikdax/backlight-target.h
@@ -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;
diff --git a/firmware/target/arm/tcc77x/m200/backlight-target.h b/firmware/target/arm/tcc77x/m200/backlight-target.h
index bbc9037075..d73ac78852 100644
--- a/firmware/target/arm/tcc77x/m200/backlight-target.h
+++ b/firmware/target/arm/tcc77x/m200/backlight-target.h
@@ -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;