Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/chrome: cros_ec_lpc: switch to SPDX identifier

Adopt the SPDX license identifier headers to ease license compliance
management. Also remove the license boiler-plate and redundant driver
description.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>

+24 -102
+12 -22
drivers/platform/chrome/cros_ec_lpc.c
··· 1 - /* 2 - * cros_ec_lpc - LPC access to the Chrome OS Embedded Controller 3 - * 4 - * Copyright (C) 2012-2015 Google, Inc 5 - * 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 - * This driver uses the Chrome OS EC byte-level message-based protocol for 16 - * communicating the keyboard state (which keys are pressed) from a keyboard EC 17 - * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, 18 - * but everything else (including deghosting) is done here. The main 19 - * motivation for this is to keep the EC firmware as simple as possible, since 20 - * it cannot be easily upgraded and EC flash/IRAM space is relatively 21 - * expensive. 22 - */ 1 + // SPDX-License-Identifier: GPL-2.0 2 + // LPC interface for ChromeOS Embedded Controller 3 + // 4 + // Copyright (C) 2012-2015 Google, Inc 5 + // 6 + // This driver uses the ChromeOS EC byte-level message-based protocol for 7 + // communicating the keyboard state (which keys are pressed) from a keyboard EC 8 + // to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, 9 + // but everything else (including deghosting) is done here. The main 10 + // motivation for this is to keep the EC firmware as simple as possible, since 11 + // it cannot be easily upgraded and EC flash/IRAM space is relatively 12 + // expensive. 23 13 24 14 #include <linux/acpi.h> 25 15 #include <linux/dmi.h>
+4 -22
drivers/platform/chrome/cros_ec_lpc_mec.c
··· 1 - /* 2 - * cros_ec_lpc_mec - LPC variant I/O for Microchip EC 3 - * 4 - * Copyright (C) 2016 Google, Inc 5 - * 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 - * This driver uses the Chrome OS EC byte-level message-based protocol for 16 - * communicating the keyboard state (which keys are pressed) from a keyboard EC 17 - * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, 18 - * but everything else (including deghosting) is done here. The main 19 - * motivation for this is to keep the EC firmware as simple as possible, since 20 - * it cannot be easily upgraded and EC flash/IRAM space is relatively 21 - * expensive. 22 - */ 1 + // SPDX-License-Identifier: GPL-2.0 2 + // LPC variant I/O for Microchip EC 3 + // 4 + // Copyright (C) 2016 Google, Inc 23 5 24 6 #include <linux/delay.h> 25 7 #include <linux/io.h>
+2 -18
drivers/platform/chrome/cros_ec_lpc_mec.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 - * cros_ec_lpc_mec - LPC variant I/O for Microchip EC 3 + * LPC variant I/O for Microchip EC 3 4 * 4 5 * Copyright (C) 2016 Google, Inc 5 - * 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 - * This driver uses the Chrome OS EC byte-level message-based protocol for 16 - * communicating the keyboard state (which keys are pressed) from a keyboard EC 17 - * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, 18 - * but everything else (including deghosting) is done here. The main 19 - * motivation for this is to keep the EC firmware as simple as possible, since 20 - * it cannot be easily upgraded and EC flash/IRAM space is relatively 21 - * expensive. 22 6 */ 23 7 24 8 #ifndef __CROS_EC_LPC_MEC_H
+4 -22
drivers/platform/chrome/cros_ec_lpc_reg.c
··· 1 - /* 2 - * cros_ec_lpc_reg - LPC access to the Chrome OS Embedded Controller 3 - * 4 - * Copyright (C) 2016 Google, Inc 5 - * 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 - * This driver uses the Chrome OS EC byte-level message-based protocol for 16 - * communicating the keyboard state (which keys are pressed) from a keyboard EC 17 - * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, 18 - * but everything else (including deghosting) is done here. The main 19 - * motivation for this is to keep the EC firmware as simple as possible, since 20 - * it cannot be easily upgraded and EC flash/IRAM space is relatively 21 - * expensive. 22 - */ 1 + // SPDX-License-Identifier: GPL-2.0 2 + // LPC interface for ChromeOS Embedded Controller 3 + // 4 + // Copyright (C) 2016 Google, Inc 23 5 24 6 #include <linux/io.h> 25 7 #include <linux/mfd/cros_ec.h>
+2 -18
drivers/platform/chrome/cros_ec_lpc_reg.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 - * cros_ec_lpc_reg - LPC access to the Chrome OS Embedded Controller 3 + * LPC interface for ChromeOS Embedded Controller 3 4 * 4 5 * Copyright (C) 2016 Google, Inc 5 - * 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 - * This driver uses the Chrome OS EC byte-level message-based protocol for 16 - * communicating the keyboard state (which keys are pressed) from a keyboard EC 17 - * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, 18 - * but everything else (including deghosting) is done here. The main 19 - * motivation for this is to keep the EC firmware as simple as possible, since 20 - * it cannot be easily upgraded and EC flash/IRAM space is relatively 21 - * expensive. 22 6 */ 23 7 24 8 #ifndef __CROS_EC_LPC_REG_H