summaryrefslogtreecommitdiff
path: root/driver/touchpad_elan.c
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2017-11-12 18:01:58 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-20 04:53:20 -0800
commit4cb524de67477df6a1a55daaf7ffbf3c60276242 (patch)
tree3cc557cc7e508f9d816d353b54c045fd29d2b09a /driver/touchpad_elan.c
parent3b80b4e827f9bb2e82656fa74748954a06050b48 (diff)
downloadchrome-ec-4cb524de67477df6a1a55daaf7ffbf3c60276242.tar.gz
touchpad_elan: Rename task/interrupts functions
Change the names to generic touchpad_* functions, instead of vendor-specific names. Makes it a little easier to add drivers for other touchpads. Also fix console_channel.inc to add the channel whenever any touchpad is used. BRANCH=none BUG=b:68934906 TEST=make buildall -j Change-Id: I6d268db5ebd53db272fb2ee7bbf06bbe80845734 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/778750 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'driver/touchpad_elan.c')
-rw-r--r--driver/touchpad_elan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/touchpad_elan.c b/driver/touchpad_elan.c
index f71bf3d09f..d3f19275ff 100644
--- a/driver/touchpad_elan.c
+++ b/driver/touchpad_elan.c
@@ -5,13 +5,13 @@
#include "common.h"
#include "console.h"
-#include "touchpad_elan.h"
#include "gpio.h"
#include "hwtimer.h"
#include "hooks.h"
#include "i2c.h"
#include "task.h"
#include "timer.h"
+#include "touchpad.h"
#include "update_fw.h"
#include "util.h"
#include "usb_hid_touchpad.h"
@@ -514,14 +514,14 @@ int touchpad_debug(const uint8_t *param, unsigned int param_size,
}
#endif
-void elan_tp_interrupt(enum gpio_signal signal)
+void touchpad_interrupt(enum gpio_signal signal)
{
irq_ts = __hw_clock_source_read();
task_wake(TASK_ID_TOUCHPAD);
}
-void elan_tp_task(void *u)
+void touchpad_task(void *u)
{
elan_tp_init();