summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorBenson Leung <bleung@chromium.org>2018-05-23 15:00:47 -0400
committerBenson Leung <bleung@chromium.org>2018-05-23 15:00:47 -0400
commit4574d1d61da3561713a6bb7332abe8ff5a9c7fbf (patch)
tree168d63245bc5c3e1754d79cdbedde0d33b259911 /drivers/platform
parentb418f74170d7e066bad802e8563cabdb1b6032c6 (diff)
platform/chrome: chromeos_tbmc - add SPDX identifier
Replace the original license statement with the SPDX identifier. Add also one line of description as recommended by the COPYING file. Signed-off-by: Benson Leung <bleung@chromium.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/chrome/chromeos_tbmc.c27
1 files changed, 5 insertions, 22 deletions
diff --git a/drivers/platform/chrome/chromeos_tbmc.c b/drivers/platform/chrome/chromeos_tbmc.c
index c87e53319dae..b935df6a9694 100644
--- a/drivers/platform/chrome/chromeos_tbmc.c
+++ b/drivers/platform/chrome/chromeos_tbmc.c
@@ -1,25 +1,8 @@
1/* 1// SPDX-License-Identifier: GPL-2.0+
2 * chromeos_tbmc - Driver to detect Tablet Mode for ChromeOS convertible. 2// Driver to detect Tablet Mode for ChromeOS convertible.
3 * 3//
4 * Copyright 2017 Google, Inc 4// Copyright (C) 2017 Google, Inc.
5 * 5// Author: Gwendal Grignou <gwendal@chromium.org>
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * On Chromebook using ACPI, this device listens for notification
16 * from GOOG0006 and issue method TBMC to retrieve the status.
17 *
18 * GOOG0006 issues the notification when it receives EC_HOST_EVENT_MODE_CHANGE
19 * from the EC.
20 * Method TBMC reads EC_ACPI_MEM_DEVICE_ORIENTATION byte from the shared
21 * memory region.
22 */
23 6
24#include <linux/acpi.h> 7#include <linux/acpi.h>
25#include <linux/input.h> 8#include <linux/input.h>