summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/console_channel.inc2
-rw-r--r--include/touchpad.h11
2 files changed, 12 insertions, 1 deletions
diff --git a/include/console_channel.inc b/include/console_channel.inc
index 31ea119c1f..db5cbcdba9 100644
--- a/include/console_channel.inc
+++ b/include/console_channel.inc
@@ -72,7 +72,7 @@ CONSOLE_CHANNEL(CC_SWITCH, "switch")
#endif
CONSOLE_CHANNEL(CC_SYSTEM, "system")
CONSOLE_CHANNEL(CC_TASK, "task")
-#ifdef CONFIG_TOUCHPAD_ELAN
+#ifdef CONFIG_TOUCHPAD
CONSOLE_CHANNEL(CC_TOUCHPAD, "touchpad")
#endif
#ifdef CONFIG_DPTF
diff --git a/include/touchpad.h b/include/touchpad.h
new file mode 100644
index 0000000000..ce0ee5cc3e
--- /dev/null
+++ b/include/touchpad.h
@@ -0,0 +1,11 @@
+/* Copyright 2017 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __CROS_EC_TOUCHPAD_H
+#define __CROS_EC_TOUCHPAD_H
+
+void touchpad_interrupt(enum gpio_signal signal);
+
+#endif