summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 fdcc214ae6..3febd8fc15 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)
206 return 0; 206 return 0;
207} 207}
208 208
209int touchpad_read_device(void) 209static int touchpad_read_device(void)
210{ 210{
211 return touchpad_btns; 211 return touchpad_btns;
212} 212}
213 213
214void rmi_attn_cb(int bank, int pin) 214static void rmi_attn_cb(int bank, int pin)
215{ 215{
216 (void) bank; 216 (void) bank;
217 (void) pin; 217 (void) pin;
@@ -220,7 +220,7 @@ void rmi_attn_cb(int bank, int pin)
220 queue_post(&rmi_queue, RMI_INTERRUPT, 0); 220 queue_post(&rmi_queue, RMI_INTERRUPT, 0);
221} 221}
222 222
223void rmi_thread(void) 223static void rmi_thread(void)
224{ 224{
225 struct queue_event ev; 225 struct queue_event ev;
226 226
@@ -332,7 +332,7 @@ int button_read_device(void)
332 * and the volume up button is recovery, it is not possible to know whether 332 * and the volume up button is recovery, it is not possible to know whether
333 * power button is down when volume up is down (except if there is another 333 * power button is down when volume up is down (except if there is another
334 * method but volume up and power don't seem to be wired to GPIO pins). */ 334 * method but volume up and power don't seem to be wired to GPIO pins). */
335 switch((HW_POWER_STS & HW_POWER_STS__PSWITCH_BM) >> HW_POWER_STS__PSWITCH_BP) 335 switch(__XTRACT(HW_POWER_STS, PSWITCH))
336 { 336 {
337 case 1: res |= BUTTON_POWER; break; 337 case 1: res |= BUTTON_POWER; break;
338 case 3: res |= BUTTON_VOL_UP; break; 338 case 3: res |= BUTTON_VOL_UP; break;