summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/tcc780x
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/tcc780x
parent2a3e1628a50b9de7c1462ee95eb79937795f5409 (diff)
downloadrockbox-89ba7e818c0d96b779b02bc7b31c0c6a19294a46.tar.gz
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/tcc780x')
-rw-r--r--firmware/target/arm/tcc780x/cowond2/backlight-cowond2.c12
-rw-r--r--firmware/target/arm/tcc780x/cowond2/backlight-target.h8
-rw-r--r--firmware/target/arm/tcc780x/cowond2/button-cowond2.c2
-rw-r--r--firmware/target/arm/tcc780x/cowond2/power-cowond2.c2
4 files changed, 12 insertions, 12 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/backlight-cowond2.c b/firmware/target/arm/tcc780x/cowond2/backlight-cowond2.c
index 5668023f28..37ee0e57a1 100644
--- a/firmware/target/arm/tcc780x/cowond2/backlight-cowond2.c
+++ b/firmware/target/arm/tcc780x/cowond2/backlight-cowond2.c
@@ -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)
{
diff --git a/firmware/target/arm/tcc780x/cowond2/backlight-target.h b/firmware/target/arm/tcc780x/cowond2/backlight-target.h
index dbb0baae43..6577f74474 100644
--- a/firmware/target/arm/tcc780x/cowond2/backlight-target.h
+++ b/firmware/target/arm/tcc780x/cowond2/backlight-target.h
@@ -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
diff --git a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c
index df2ea1f307..6c8541ef62 100644
--- a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c
+++ b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c
@@ -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;
diff --git a/firmware/target/arm/tcc780x/cowond2/power-cowond2.c b/firmware/target/arm/tcc780x/cowond2/power-cowond2.c
index 09787289ac..6576afb09c 100644
--- a/firmware/target/arm/tcc780x/cowond2/power-cowond2.c
+++ b/firmware/target/arm/tcc780x/cowond2/power-cowond2.c
@@ -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 */