summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaiyen Chang <kaiyen.chang@intel.com>2018-03-25 01:01:42 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-03-27 18:22:56 +0000
commita245cd67bb68f9bc5e25883c29e37d6cf537be9b (patch)
treead94d28ab9e1155e9fe8a601a46fdf7b8447c76f
parent8aed131e2043f8c3d036badb44cf1fee8f60b409 (diff)
downloadchrome-ec-a245cd67bb68f9bc5e25883c29e37d6cf537be9b.tar.gz
Remove the unnecessary words of "Disable touchpad" in the comments
The control of trackpad from EC was entirely removed by CL:421275. So remove the unnecessary words of disabling touchpad in the comment of lid_angle_peripheral_enable(). BUG=none BRANCH=poppy TEST=none Change-Id: Ie688d9dc98c5f6f60a9d3908945495f4b6fdb00d Signed-off-by: Kaiyen Chang <kaiyen.chang@intel.com> Reviewed-on: https://chromium-review.googlesource.com/979572 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/982346 Reviewed-by: Furquan Shaikh <furquan@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Trybot-Ready: Furquan Shaikh <furquan@chromium.org>
-rw-r--r--board/coral/board.c3
-rw-r--r--board/nami/board.c3
-rw-r--r--board/nautilus/board.c3
-rw-r--r--board/reef/board.c3
4 files changed, 8 insertions, 4 deletions
diff --git a/board/coral/board.c b/board/coral/board.c
index 92160d4cc6..e54138b904 100644
--- a/board/coral/board.c
+++ b/board/coral/board.c
@@ -667,7 +667,8 @@ static void enable_input_devices(void)
void lid_angle_peripheral_enable(int enable)
{
/* If the lid is in 360 position, ignore the lid angle,
- * which might be faulty. Disable keyboard and touchpad. */
+ * which might be faulty. Disable keyboard.
+ */
if (tablet_get_mode() || chipset_in_state(CHIPSET_STATE_ANY_OFF))
enable = 0;
keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE);
diff --git a/board/nami/board.c b/board/nami/board.c
index 29ee69147a..40722559cf 100644
--- a/board/nami/board.c
+++ b/board/nami/board.c
@@ -661,7 +661,8 @@ BUILD_ASSERT(ARRAY_SIZE(motion_als_sensors) == ALS_COUNT);
void lid_angle_peripheral_enable(int enable)
{
/* If the lid is in 360 position, ignore the lid angle,
- * which might be faulty. Disable keyboard and touchpad. */
+ * which might be faulty. Disable keyboard.
+ */
if (tablet_get_mode() || chipset_in_state(CHIPSET_STATE_ANY_OFF))
enable = 0;
keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE);
diff --git a/board/nautilus/board.c b/board/nautilus/board.c
index ff9ad80944..5f0c75514e 100644
--- a/board/nautilus/board.c
+++ b/board/nautilus/board.c
@@ -670,7 +670,8 @@ const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors);
void lid_angle_peripheral_enable(int enable)
{
/* If the lid is in 360 position, ignore the lid angle,
- * which might be faulty. Disable keyboard and touchpad. */
+ * which might be faulty. Disable keyboard.
+ */
if (tablet_get_mode() || chipset_in_state(CHIPSET_STATE_ANY_OFF))
enable = 0;
keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE);
diff --git a/board/reef/board.c b/board/reef/board.c
index 782c49794c..2bbccc946b 100644
--- a/board/reef/board.c
+++ b/board/reef/board.c
@@ -653,7 +653,8 @@ static void enable_input_devices(void)
void lid_angle_peripheral_enable(int enable)
{
/* If the lid is in 360 position, ignore the lid angle,
- * which might be faulty. Disable keyboard and touchpad. */
+ * which might be faulty. Disable keyboard.
+ */
if (tablet_get_mode() || chipset_in_state(CHIPSET_STATE_ANY_OFF))
enable = 0;
keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE);