summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
index afabdd3bc3..05c4da8540 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/button-fuzeplus.c
@@ -28,6 +28,7 @@
28#include "string.h" 28#include "string.h"
29#include "usb.h" 29#include "usb.h"
30#include "power-imx233.h" 30#include "power-imx233.h"
31#include "touchpad.h"
31 32
32#ifndef BOOTLOADER 33#ifndef BOOTLOADER
33 34
@@ -274,7 +275,7 @@ static void do_interrupt(void)
274 imx233_pinctrl_setup_irq(0, 27, true, true, false, &rmi_attn_cb, 0); 275 imx233_pinctrl_setup_irq(0, 27, true, true, false, &rmi_attn_cb, 0);
275} 276}
276 277
277void touchdev_enable(bool en) 278void touchpad_enable_device(bool en)
278{ 279{
279 t_enable = en; 280 t_enable = en;
280 queue_post(&rmi_queue, RMI_SET_SLEEP_MODE, en ? RMI_SLEEP_MODE_LOW_POWER : RMI_SLEEP_MODE_SENSOR_SLEEP); 281 queue_post(&rmi_queue, RMI_SET_SLEEP_MODE, en ? RMI_SLEEP_MODE_LOW_POWER : RMI_SLEEP_MODE_SENSOR_SLEEP);
@@ -433,5 +434,5 @@ int button_read_device(void)
433 default: 434 default:
434 break; 435 break;
435 } 436 }
436 return res | touchpad_read_device(); 437 return res | touchpad_filter(touchpad_read_device());
437} 438}