summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-11-02 17:48:04 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-11-02 17:48:04 +0000
commit856fb705c23b56ce1ccea196ffda628d56e20269 (patch)
tree90db1cda232b85bc74555a673a10f1012337967a
parenta338678d7502aa91a0bb588ffd87bbe6f35e9107 (diff)
downloadrockbox-856fb705c23b56ce1ccea196ffda628d56e20269.zip
rockbox-856fb705c23b56ce1ccea196ffda628d56e20269.tar.gz
rockbox-856fb705c23b56ce1ccea196ffda628d56e20269.tar.bz2
rockbox-856fb705c23b56ce1ccea196ffda628d56e20269.tar.xz
fuze+: use macro and add a few static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30889 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
index fdcc214..3febd8f 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
@@ -206,12 +206,12 @@ static int find_button(int x, int y)
return 0;
}
-int touchpad_read_device(void)
+static int touchpad_read_device(void)
{
return touchpad_btns;
}
-void rmi_attn_cb(int bank, int pin)
+static void rmi_attn_cb(int bank, int pin)
{
(void) bank;
(void) pin;
@@ -220,7 +220,7 @@ void rmi_attn_cb(int bank, int pin)
queue_post(&rmi_queue, RMI_INTERRUPT, 0);
}
-void rmi_thread(void)
+static void rmi_thread(void)
{
struct queue_event ev;
@@ -332,7 +332,7 @@ int button_read_device(void)
* and the volume up button is recovery, it is not possible to know whether
* power button is down when volume up is down (except if there is another
* method but volume up and power don't seem to be wired to GPIO pins). */
- switch((HW_POWER_STS & HW_POWER_STS__PSWITCH_BM) >> HW_POWER_STS__PSWITCH_BP)
+ switch(__XTRACT(HW_POWER_STS, PSWITCH))
{
case 1: res |= BUTTON_POWER; break;
case 3: res |= BUTTON_VOL_UP; break;