croc_ec: Switch to SPDX identifier
Subsystems (10)
cover croc_ec: Switch to SPDX identifier
Dear all,
This patchset is just to adopt the SPDX license identifier for all ChromeOS Embedded Controller related drivers. The patches touches different subsystems but every patch can be picked from their respective maintainer independently.
Thanks,
Enric
Enric Balletbo i Serra (9):
platform/chrome: cros_ec: Switch to SPDX identifier. platform/chrome: pstore: Switch to SPDX identifier.
mfd: cros_ec: Add or fix SPDX-License-Identifier in all files.
iio: cros_ec: Switch to SPDX identifier.
rtc: cros-ec: Switch to SPDX identifier.
Input: cros_ec_keyb - Switch to SPDX identifier.
pwm: cros-ec: Switch to SPDX identifier.
extcon: usbc-cros-ec: Switch to SPDX identifier.
i2c: i2c-cros-ec-tunnel: Switch to SPDX identifier.
drivers/extcon/extcon-usbc-cros-ec.c | 20 ++++---------- drivers/i2c/busses/i2c-cros-ec-tunnel.c | 14 +++------- drivers/iio/accel/cros_ec_accel_legacy.c | 23 ++++------------ .../common/cros_ec_sensors/cros_ec_sensors.c | 24 +++++------------ .../cros_ec_sensors/cros_ec_sensors_core.c | 18 +++---------- .../cros_ec_sensors/cros_ec_sensors_core.h | 12 ++------- drivers/iio/light/cros_ec_light_prox.c | 18 +++---------- drivers/iio/pressure/cros_ec_baro.c | 18 +++---------- drivers/input/keyboard/cros_ec_keyb.c | 26 +++--------------- drivers/mfd/cros_ec.c | 27 +++++++------------ drivers/mfd/cros_ec_dev.c | 24 +++++------------ drivers/mfd/cros_ec_dev.h | 16 ++--------- drivers/mfd/cros_ec_i2c.c | 19 ++++--------- drivers/mfd/cros_ec_spi.c | 21 +++++---------- drivers/platform/chrome/chromeos_pstore.c | 13 +++------ drivers/platform/chrome/cros_ec_debugfs.c | 22 +++------------ drivers/platform/chrome/cros_ec_lightbar.c | 22 +++------------ drivers/platform/chrome/cros_ec_lpc.c | 26 +++--------------- drivers/platform/chrome/cros_ec_lpc_mec.c | 26 +++--------------- drivers/platform/chrome/cros_ec_lpc_reg.c | 26 +++--------------- drivers/platform/chrome/cros_ec_proto.c | 19 +++---------- drivers/platform/chrome/cros_ec_sysfs.c | 22 +++------------ drivers/platform/chrome/cros_ec_vbc.c | 24 ++++------------- .../platform/chrome/cros_kbd_led_backlight.c | 19 +++---------- drivers/pwm/pwm-cros-ec.c | 13 +++------ drivers/rtc/rtc-cros-ec.c | 21 ++++----------- include/linux/mfd/cros_ec.h | 10 +------ include/linux/mfd/cros_ec_commands.h | 10 +------ include/linux/mfd/cros_ec_lpc_mec.h | 12 ++------- include/linux/mfd/cros_ec_lpc_reg.h | 12 ++------- 30 files changed, 123 insertions(+), 454 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/9 platform/chrome: cros_ec: Switch to SPDX identifier.
Adopt the SPDX license identifier headers to ease license compliance management.
---
drivers/platform/chrome/cros_ec_debugfs.c | 22 +++------------- drivers/platform/chrome/cros_ec_lightbar.c | 22 +++------------- drivers/platform/chrome/cros_ec_lpc.c | 26 +++---------------- drivers/platform/chrome/cros_ec_lpc_mec.c | 26 +++---------------- drivers/platform/chrome/cros_ec_lpc_reg.c | 26 +++---------------- drivers/platform/chrome/cros_ec_proto.c | 19 +++----------- drivers/platform/chrome/cros_ec_sysfs.c | 22 +++------------- drivers/platform/chrome/cros_ec_vbc.c | 24 ++++------------- .../platform/chrome/cros_kbd_led_backlight.c | 19 +++----------- 9 files changed, 37 insertions(+), 169 deletions(-)
drivers/platform/chrome/cros_ec_debugfs.c +4 -18
@@ -1,21 +1,7 @@ -/* -* cros_ec_debugfs - debug logs for Chrome OS EC -* -* Copyright 2015 Google, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Debug logs for ChromeOS EC. +// +// Copyright (C) 2012 Google, Inc. #include <linux/circ_buf.h> #include <linux/debugfs.h>
drivers/platform/chrome/cros_ec_lightbar.c +4 -18
@@ -1,21 +1,7 @@ -/* -* cros_ec_lightbar - expose the Chromebook Pixel lightbar to userspace -* -* Copyright (C) 2014 Google, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Expose the Chromebook Pixel lightbar to userspace. +// +// Copyright (C) 2014 Google, Inc. #define pr_fmt (fmt) "cros_ec_lightbar: " fmt
drivers/platform/chrome/cros_ec_lpc.c +4 -22
@@ -1,25 +1,7 @@ -/* -* cros_ec_lpc - LPC access to the Chrome OS Embedded Controller -* -* Copyright (C) 2012-2015 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* This driver uses the Chrome OS EC byte-level message-based protocol for -* communicating the keyboard state (which keys are pressed) from a keyboard EC -* to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, -* but everything else (including deghosting) is done here. The main -* motivation for this is to keep the EC firmware as simple as possible, since -* it cannot be easily upgraded and EC flash/IRAM space is relatively -* expensive. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// LPC access to the ChromeOS Embedded Controller. +// +// Copyright (C) 2012-2015 Google, Inc. #include <linux/acpi.h> #include <linux/dmi.h>
drivers/platform/chrome/cros_ec_lpc_mec.c +4 -22
@@ -1,25 +1,7 @@ -/* -* cros_ec_lpc_mec - LPC variant I/O for Microchip EC -* -* Copyright (C) 2016 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* This driver uses the Chrome OS EC byte-level message-based protocol for -* communicating the keyboard state (which keys are pressed) from a keyboard EC -* to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, -* but everything else (including deghosting) is done here. The main -* motivation for this is to keep the EC firmware as simple as possible, since -* it cannot be easily upgraded and EC flash/IRAM space is relatively -* expensive. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// LPC variant I/O for Microchip EC. +// +// Copyright (C) 2016 Google, Inc. #include <linux/delay.h> #include <linux/io.h>
drivers/platform/chrome/cros_ec_lpc_reg.c +4 -22
@@ -1,25 +1,7 @@ -/* -* cros_ec_lpc_reg - LPC access to the Chrome OS Embedded Controller -* -* Copyright (C) 2016 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* This driver uses the Chrome OS EC byte-level message-based protocol for -* communicating the keyboard state (which keys are pressed) from a keyboard EC -* to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, -* but everything else (including deghosting) is done here. The main -* motivation for this is to keep the EC firmware as simple as possible, since -* it cannot be easily upgraded and EC flash/IRAM space is relatively -* expensive. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// LPC access to the ChromeOS Embedded Controller. +// +// Copyright (C) 2016 Google, Inc. #include <linux/io.h> #include <linux/mfd/cros_ec.h>
drivers/platform/chrome/cros_ec_proto.c +4 -15
@@ -1,18 +1,7 @@ -/* -* ChromeOS EC communication protocol helper functions -* -* Copyright (C) 2015 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -*/ +// SPDX-License-Identifier: GPL-2.0+ +// ChromeOS EC communication protocol helper functions. +// +// Copyright (C) 2015 Google, Inc. #include <linux/mfd/cros_ec.h> #include <linux/delay.h>
drivers/platform/chrome/cros_ec_sysfs.c +4 -18
@@ -1,21 +1,7 @@ -/* -* cros_ec_sysfs - expose the Chrome OS EC through sysfs -* -* Copyright (C) 2014 Google, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Expose the Chrome OS EC through sysfs. +// +// Copyright (C) 2014 Google, Inc. #define pr_fmt (fmt) "cros_ec_sysfs: " fmt
drivers/platform/chrome/cros_ec_vbc.c +5 -19
@@ -1,22 +1,8 @@ -/* -* cros_ec_vbc - Expose the vboot context nvram to userspace -* -* Copyright (C) 2015 Collabora Ltd. -* -* based on vendor driver, -* -* Copyright (C) 2012 The Chromium OS Authors -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Expose the vboot context nvram to userspace. +// +// Copyright (C) 2012 Google, Inc. +// Copyright (C) 2015 Collabora Ltd. #include <linux/of.h> #include <linux/platform_device.h>
drivers/platform/chrome/cros_kbd_led_backlight.c +4 -15
@@ -1,18 +1,7 @@ -/* -* Keyboard backlight LED driver for Chrome OS. -* -* Copyright (C) 2012 Google, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Keyboard backlight LED driver for ChromeOS. +// +// Copyright (C) 2012 Google, Inc. #include <linux/acpi.h> #include <linux/leds.h>
Signature · 1 line
2.17.1
Re: [PATCH 1/9] platform/chrome: cros_ec: Switch to SPDX identifier.
Hi Enric,
Quoted 34 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/platform/chrome/cros_ec_debugfs.c | 22 +++------------- drivers/platform/chrome/cros_ec_lightbar.c | 22 +++------------- drivers/platform/chrome/cros_ec_lpc.c | 26 +++---------------- drivers/platform/chrome/cros_ec_lpc_mec.c | 26 +++---------------- drivers/platform/chrome/cros_ec_lpc_reg.c | 26 +++---------------- drivers/platform/chrome/cros_ec_proto.c | 19 +++----------- drivers/platform/chrome/cros_ec_sysfs.c | 22 +++------------- drivers/platform/chrome/cros_ec_vbc.c | 24 ++++------------- .../platform/chrome/cros_kbd_led_backlight.c | 19 +++----------- 9 files changed, 37 insertions(+), 169 deletions(-)drivers/platform/chrome/cros_ec_debugfs.c +0
-12@@ -1,21 +1,7 @@ -/* -* cros_ec_debugfs - debug logs for Chrome OS EC -* -* Copyright 2015 Google, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of
drivers/platform/chrome/cros_ec_debugfs.c line 4
Quoted 10 lines
drivers/platform/chrome/cros_ec_debugfs.c +4
-6-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Debug logs for ChromeOS EC. +// +// Copyright (C) 2012 Google, Inc.
Copy paste error, s/2012/2015/ ?
Cheers,
Emilio
PATCH 2/9 platform/chrome: pstore: Switch to SPDX identifier.
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
drivers/platform/chrome/chromeos_pstore.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-)
drivers/platform/chrome/chromeos_pstore.c +4 -9
@@ -1,12 +1,7 @@ -/* -* chromeos_pstore.c - Driver to instantiate Chromebook ramoops device -* -* Copyright (C) 2013 Google, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, version 2 of the License. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Driver to instantiate Chromebook ramoops device. +// +// Copyright (C) 2013 Google, Inc. #include <linux/acpi.h> #include <linux/dmi.h>
Signature · 1 line
2.17.1
PATCH 3/9 mfd: cros_ec: Add or fix SPDX-License-Identifier in all files.
In reply to Enric Balletbo i SerraAnd get rid of the license text that is no longer necessary. Also fix the license as sometimes doesn't match what the header with the value in the MODULE_LICENSE macro. Assuming that the desired license is GPL-2.0+, all the files are updated to this license version.
---
drivers/mfd/cros_ec.c | 27 +++++++++------------------ drivers/mfd/cros_ec_dev.c | 24 ++++++------------------ drivers/mfd/cros_ec_dev.h | 16 ++-------------- drivers/mfd/cros_ec_i2c.c | 19 +++++-------------- drivers/mfd/cros_ec_spi.c | 21 ++++++--------------- include/linux/mfd/cros_ec.h | 10 +--------- include/linux/mfd/cros_ec_commands.h | 10 +--------- include/linux/mfd/cros_ec_lpc_mec.h | 12 ++---------- include/linux/mfd/cros_ec_lpc_reg.h | 12 ++---------- 9 files changed, 34 insertions(+), 117 deletions(-)
drivers/mfd/cros_ec.c +9 -18
@@ -1,21 +1,12 @@ -/* -* ChromeOS EC multi-function device -* -* Copyright (C) 2012 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* The ChromeOS EC multi function device is used to mux all the requests -* to the EC device for its multiple features: keyboard controller, -* battery charging and regulator control, firmware update. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// +// ChromeOS EC multi-function device. +// +// Copyright (C) 2012 Google, Inc +// +// The ChromeOS EC multi function device is used to mux all the requests +// to the EC device for its multiple features: keyboard controller, +// battery charging and regulator control, firmware update. #include <linux/of_platform.h> #include <linux/interrupt.h>
drivers/mfd/cros_ec_dev.c +6 -18
@@ -1,21 +1,9 @@ -/* -* cros_ec_dev - expose the Chrome OS Embedded Controller to user-space -* -* Copyright (C) 2014 Google, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// +// Expose the ChromeOS Embedded Controller to user-space. +// +// Copyright (C) 2014 Google, Inc. +// Author: Bill Richardson <[email protected]> #include <linux/fs.h> #include <linux/mfd/core.h>
drivers/mfd/cros_ec_dev.h +2 -14
@@ -1,20 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* -* cros_ec_dev - expose the Chrome OS Embedded Controller to userspace +* cros_ec_dev - Expose the Chrome OS Embedded Controller to userspace * * Copyright (C) 2014 Google, Inc. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef _CROS_EC_DEV_H_
drivers/mfd/cros_ec_i2c.c +5 -14
@@ -1,17 +1,8 @@ -/* -* ChromeOS EC multi-function device (I2C) -* -* Copyright (C) 2012 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// +// ChromeOS EC multi-function device (I2C). +// +// Copyright (C) 2012 Google, Inc #include <linux/acpi.h> #include <linux/delay.h>
drivers/mfd/cros_ec_spi.c +6 -15
@@ -1,17 +1,8 @@ -/* -* ChromeOS EC multi-function device (SPI) -* -* Copyright (C) 2012 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// +// ChromeOS EC multi-function device (SPI). +// +// Copyright (C) 2012 Google, Inc #include <linux/delay.h> #include <linux/kernel.h>
@@ -739,5 +730,5 @@ static struct spi_driver cros_ec_driver_spi = {module_spi_driver (cros_ec_driver_spi); -MODULE_LICENSE ("GPL v2" ); +MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("ChromeOS EC multi function device (SPI)" );
include/linux/mfd/cros_ec.h +1 -9
@@ -1,16 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * ChromeOS EC multi-function device * * Copyright (C) 2012 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. */ #ifndef __LINUX_MFD_CROS_EC_H
include/linux/mfd/cros_ec_commands.h +1 -9
@@ -1,17 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Host communication command constants for ChromeOS EC * * Copyright (C) 2012 Google, Inc * -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* * The ChromeOS EC multi function device is used to mux all the requests * to the EC device for its multiple features: keyboard controller, * battery charging and regulator control, firmware update.
include/linux/mfd/cros_ec_lpc_mec.h +2 -10
@@ -1,17 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* -* cros_ec_lpc_mec - LPC variant I/O for Microchip EC +* LPC variant I/O for Microchip EC * * Copyright (C) 2016 Google, Inc * -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* * This driver uses the Chrome OS EC byte-level message-based protocol for * communicating the keyboard state (which keys are pressed) from a keyboard EC * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing,
include/linux/mfd/cros_ec_lpc_reg.h +2 -10
@@ -1,17 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* -* cros_ec_lpc_reg - LPC access to the Chrome OS Embedded Controller +* LPC register access to the ChromeOS Embedded Controller * * Copyright (C) 2016 Google, Inc * -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* * This driver uses the Chrome OS EC byte-level message-based protocol for * communicating the keyboard state (which keys are pressed) from a keyboard EC * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing,
Signature · 1 line
2.17.1
PATCH 4/9 iio: cros_ec: Switch to SPDX identifier.
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
drivers/iio/accel/cros_ec_accel_legacy.c | 23 ++++-------------- .../common/cros_ec_sensors/cros_ec_sensors.c | 24 ++++++------------- .../cros_ec_sensors/cros_ec_sensors_core.c | 18 ++++---------- .../cros_ec_sensors/cros_ec_sensors_core.h | 12 ++-------- drivers/iio/light/cros_ec_light_prox.c | 18 ++++---------- drivers/iio/pressure/cros_ec_baro.c | 18 ++++---------- 6 files changed, 26 insertions(+), 87 deletions(-)
drivers/iio/accel/cros_ec_accel_legacy.c +5 -18
@@ -1,21 +1,8 @@ -/* -* Driver for older Chrome OS EC accelerometer -* -* Copyright 2017 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* This driver uses the memory mapper cros-ec interface to communicate -* with the Chrome OS EC about accelerometer data. -* Accelerometer access is presented through iio sysfs. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Driver for older Chrome OS EC accelerometer +// +// Copyright (C) 2017 Google, Inc. +// Author: Gwendal Grignou <[email protected]> #include <linux/delay.h> #include <linux/device.h>
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c +7 -17
@@ -1,20 +1,10 @@ -/* -* cros_ec_sensors - Driver for Chrome OS Embedded Controller sensors. -* -* Copyright (C) 2016 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* This driver uses the cros-ec interface to communicate with the Chrome OS -* EC about sensors data. Data access is presented through iio sysfs. -*/ +// SPDX-License-Identifier: GPL-2.0 +// Driver for Chrome OS Embedded Controller sensors. +// +// Copyright (C) 2016 Google, Inc. +// +// This driver uses the cros-ec interface to communicate with the ChromeOS +// EC about sensors data. Data access is presented through iio sysfs. #include <linux/delay.h> #include <linux/device.h>
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +4 -14
@@ -1,17 +1,7 @@ -/* -* cros_ec_sensors_core - Common function for Chrome OS EC sensor driver. -* -* Copyright (C) 2016 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0 +// Common functions for ChromeOS EC sensor driver. +// +// Copyright (C) 2016 Google, Inc. #include <linux/delay.h> #include <linux/device.h>
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h +2 -10
@@ -1,16 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * ChromeOS EC sensor hub * -* Copyright (C) 2016 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. +* Copyright (C) 2016 Google, Inc. */ #ifndef __CROS_EC_SENSORS_CORE_H
drivers/iio/light/cros_ec_light_prox.c +4 -14
@@ -1,17 +1,7 @@ -/* -* cros_ec_light_prox - Driver for light and prox sensors behing CrosEC. -* -* Copyright (C) 2017 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0 +// Driver for light and prox sensors behind ChromeOS EC. +// +// Copyright (C) 2017 Google, Inc. #include <linux/delay.h> #include <linux/device.h>
drivers/iio/pressure/cros_ec_baro.c +4 -14
@@ -1,17 +1,7 @@ -/* -* cros_ec_baro - Driver for barometer sensor behind CrosEC. -* -* Copyright (C) 2017 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0 +// Driver for barometer sensor behind ChromeOS EC. +// +// Copyright (C) 2017 Google, Inc. #include <linux/delay.h> #include <linux/device.h>
Signature · 1 line
2.17.1
Jonathan Cameron
maintainerRe: [PATCH 4/9] iio: cros_ec: Switch to SPDX identifier.
Quoted 4 lines · On Tue, 5 Jun 2018 11:22:04 +0200 Enric Balletbo i Serra…
Adopt the SPDX license identifier headers to ease license compliance management.
Signed-off-by Enric Balletbo i Serra <[email protected]>
This code has seen quite a few contributors, I'd like at least some of them to agree they are happy with this change.
There hasn't been much general resistance in general to SPDX headers replacing text, but there has been some, so I've been asking this for all the IIO related SPDX patches.
Thanks,
Jonathan
Quoted 174 lines
---
drivers/iio/accel/cros_ec_accel_legacy.c | 23 ++++-------------- .../common/cros_ec_sensors/cros_ec_sensors.c | 24 ++++++------------- .../cros_ec_sensors/cros_ec_sensors_core.c | 18 ++++---------- .../cros_ec_sensors/cros_ec_sensors_core.h | 12 ++-------- drivers/iio/light/cros_ec_light_prox.c | 18 ++++---------- drivers/iio/pressure/cros_ec_baro.c | 18 ++++---------- 6 files changed, 26 insertions(+), 87 deletions(-)drivers/iio/accel/cros_ec_accel_legacy.c +5
-18@@ -1,21 +1,8 @@ -/* -* Driver for older Chrome OS EC accelerometer -* -* Copyright 2017 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* This driver uses the memory mapper cros-ec interface to communicate -* with the Chrome OS EC about accelerometer data. -* Accelerometer access is presented through iio sysfs. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Driver for older Chrome OS EC accelerometer +// +// Copyright (C) 2017 Google, Inc. +// Author: Gwendal Grignou <[email protected]> #include <linux/delay.h> #include <linux/device.h> drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c +7
-17@@ -1,20 +1,10 @@ -/* -* cros_ec_sensors - Driver for Chrome OS Embedded Controller sensors. -* -* Copyright (C) 2016 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* This driver uses the cros-ec interface to communicate with the Chrome OS -* EC about sensors data. Data access is presented through iio sysfs. -*/ +// SPDX-License-Identifier: GPL-2.0 +// Driver for Chrome OS Embedded Controller sensors. +// +// Copyright (C) 2016 Google, Inc. +// +// This driver uses the cros-ec interface to communicate with the ChromeOS +// EC about sensors data. Data access is presented through iio sysfs. #include <linux/delay.h> #include <linux/device.h> drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +4
-14@@ -1,17 +1,7 @@ -/* -* cros_ec_sensors_core - Common function for Chrome OS EC sensor driver. -* -* Copyright (C) 2016 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0 +// Common functions for ChromeOS EC sensor driver. +// +// Copyright (C) 2016 Google, Inc. #include <linux/delay.h> #include <linux/device.h> drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h +2
-10@@ -1,16 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * ChromeOS EC sensor hub * -* Copyright (C) 2016 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. +* Copyright (C) 2016 Google, Inc. */ #ifndef __CROS_EC_SENSORS_CORE_Hdrivers/iio/light/cros_ec_light_prox.c +4
-14@@ -1,17 +1,7 @@ -/* -* cros_ec_light_prox - Driver for light and prox sensors behing CrosEC. -* -* Copyright (C) 2017 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0 +// Driver for light and prox sensors behind ChromeOS EC. +// +// Copyright (C) 2017 Google, Inc. #include <linux/delay.h> #include <linux/device.h> drivers/iio/pressure/cros_ec_baro.c +4
-14@@ -1,17 +1,7 @@ -/* -* cros_ec_baro - Driver for barometer sensor behind CrosEC. -* -* Copyright (C) 2017 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0 +// Driver for barometer sensor behind ChromeOS EC. +// +// Copyright (C) 2017 Google, Inc. #include <linux/delay.h> #include <linux/device.h>
PATCH 5/9 rtc: cros-ec: Switch to SPDX identifier.
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
drivers/rtc/rtc-cros-ec.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)
drivers/rtc/rtc-cros-ec.c +5 -16
@@ -1,19 +1,8 @@ -/* -* RTC driver for Chrome OS Embedded Controller -* -* Copyright (c) 2017, Google, Inc -* -* Author: Stephen Barber <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms and conditions of the GNU General Public License, -* version 2, as published by the Free Software Foundation. -* -* This program is distributed in the hope it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -* more details. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// RTC driver for ChromeOS Embedded Controller. +// +// Copyright (C) 2017 Google, Inc. +// Author: Stephen Barber <[email protected]> #include <linux/kernel.h> #include <linux/mfd/cros_ec.h>
Signature · 1 line
2.17.1
Re: [PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier.
Quoted 9 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/rtc/rtc-cros-ec.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)
Applied, thanks.
Signature · 3 lines
Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier.
Hi Alexandre,
Quoted 4 lines · Alexandre Belloni
Quoted 3 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/rtc/rtc-cros-ec.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)Applied, thanks.
Looks like all the ChromeOS drivers should be licensed as GPL v2 only. There was a mismatch between what the header says and the MODULE_LICENSE and I wrongly assumed that the MODULE_LICENSE is the one I should follow. So could you not apply this patch for now and I'll send another version with the correct license?
Thanks and sorry for the inconvenience this may cause you,
Enric
Alexandre Belloni
maintainerRe: [PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier.
Quoted 13 lines · Enric Balletbo i Serra
Hi Alexandre,
Quoted 10 lines · Alexandre Belloni
Quoted 9 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/rtc/rtc-cros-ec.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)
Quoted 8 lines
Quoted 2 lines
Applied, thanks.
Looks like all the ChromeOS drivers should be licensed as GPL v2 only. There was a mismatch between what the header says and the
MODULE_LICENSEand I wrongly assumed that theMODULE_LICENSEis the one I should follow. So could you not apply this patch for now and I'll send another version with the correct license?
Hum, ok, this seemed to be the correct way to solve the mismatch to me.
Signature · 3 lines
Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier.
Quoted 17 lines · Alexandre Belloni
Quoted 16 lines · Enric Balletbo i Serra
Hi Alexandre,
Quoted 12 lines · Alexandre Belloni
Quoted 9 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/rtc/rtc-cros-ec.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)Applied, thanks.
Quoted 7 lines
Quoted 5 lines
Looks like all the ChromeOS drivers should be licensed as GPL v2 only. There was a mismatch between what the header says and the
MODULE_LICENSEand I wrongly assumed that theMODULE_LICENSEis the one I should follow. So could you not apply this patch for now and I'll send another version with the correct license?Hum, ok, this seemed to be the correct way to solve the mismatch to me.
No, the license text trumps the MODULE_LICENSE() string. Please revert this, or fix it up to be correct.
thanks,
greg k-h
Alexandre Belloni
maintainerRe: [PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier.
Quoted 24 lines · Greg KH
Quoted 23 lines · Alexandre Belloni
Quoted 21 lines · Enric Balletbo i Serra
Hi Alexandre,
Quoted 4 lines · Alexandre Belloni
Quoted 3 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/rtc/rtc-cros-ec.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)Applied, thanks.
Looks like all the ChromeOS drivers should be licensed as GPL v2 only. There was a mismatch between what the header says and the
MODULE_LICENSEand I wrongly assumed that theMODULE_LICENSEis the one I should follow. So could you not apply this patch for now and I'll send another version with the correct license?
Quoted 5 lines
Quoted 1 line
Hum, ok, this seemed to be the correct way to solve the mismatch to me.
No, the license text trumps the
MODULE_LICENSE()string. Please revert this, or fix it up to be correct.
Isn't it correct in Linus' tree?
Signature · 3 lines
Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier.
Quoted 25 lines · Alexandre Belloni
Quoted 24 lines · Greg KH
Quoted 23 lines · Alexandre Belloni
Quoted 21 lines · Enric Balletbo i Serra
Hi Alexandre,
Quoted 4 lines · Alexandre Belloni
Quoted 3 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/rtc/rtc-cros-ec.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)Applied, thanks.
Looks like all the ChromeOS drivers should be licensed as GPL v2 only. There was a mismatch between what the header says and the
MODULE_LICENSEand I wrongly assumed that theMODULE_LICENSEis the one I should follow. So could you not apply this patch for now and I'll send another version with the correct license?
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Hum, ok, this seemed to be the correct way to solve the mismatch to me.
No, the license text trumps the
MODULE_LICENSE()string. Please revert this, or fix it up to be correct.Isn't it correct in Linus' tree?
Looks good to me now, sorry for the noise.
greg k-h
PATCH 6/9 Input: cros_ec_keyb - Switch to SPDX identifier.
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
drivers/input/keyboard/cros_ec_keyb.c | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-)
drivers/input/keyboard/cros_ec_keyb.c +4 -22
@@ -1,25 +1,7 @@ -/* -* ChromeOS EC keyboard driver -* -* Copyright (C) 2012 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* This driver uses the Chrome OS EC byte-level message-based protocol for -* communicating the keyboard state (which keys are pressed) from a keyboard EC -* to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, -* but everything else (including deghosting) is done here. The main -* motivation for this is to keep the EC firmware as simple as possible, since -* it cannot be easily upgraded and EC flash/IRAM space is relatively -* expensive. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// ChromeOS EC keyboard driver +// +// Copyright (C) 2012 Google, Inc. #include <linux/module.h> #include <linux/bitops.h>
Signature · 1 line
2.17.1
Dmitry Torokhov
maintainerRe: [PATCH 6/9] Input: cros_ec_keyb - Switch to SPDX identifier.
Quoted 26 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/input/keyboard/cros_ec_keyb.c | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-)drivers/input/keyboard/cros_ec_keyb.c +0
-12@@ -1,25 +1,7 @@ -/* -* ChromeOS EC keyboard driver -* -* Copyright (C) 2012 Google, Inc -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
drivers/input/keyboard/cros_ec_keyb.c line 22
Quoted 10 lines
drivers/input/keyboard/cros_ec_keyb.c +0
-10-* GNU General Public License for more details. -* -* This driver uses the Chrome OS EC byte-level message-based protocol for -* communicating the keyboard state (which keys are pressed) from a keyboard EC -* to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing, -* but everything else (including deghosting) is done here. The main -* motivation for this is to keep the EC firmware as simple as possible, since -* it cannot be easily upgraded and EC flash/IRAM space is relatively -* expensive. -*/
Ugh, why did you remove this last paragraph? It has nothing to do with license notice and should have been kept.
Quoted 10 lines
drivers/input/keyboard/cros_ec_keyb.c +4
-0+// SPDX-License-Identifier: GPL-2.0+ +// ChromeOS EC keyboard driver +// +// Copyright (C) 2012 Google, Inc. #include <linux/module.h> #include <linux/bitops.h> Signature · 1 line
2.17.1
Thanks.
Signature · 1 line
Dmitry
PATCH 7/9 pwm: cros-ec: Switch to SPDX identifier.
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
drivers/pwm/pwm-cros-ec.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-)
drivers/pwm/pwm-cros-ec.c +4 -9
@@ -1,12 +1,7 @@ -/* -* Copyright (C) 2016 Google, Inc -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License version 2, as published by -* the Free Software Foundation. -* -* Expose a PWM controlled by the ChromeOS EC to the host processor. -*/ +// SPDX-License-Identifier: GPL-2.0 +// Expose a PWM controlled by the ChromeOS EC to the host processor. +// +// Copyright (C) 2016 Google, Inc. #include <linux/module.h> #include <linux/mfd/cros_ec.h>
Signature · 1 line
2.17.1
PATCH 8/9 extcon: usbc-cros-ec: Switch to SPDX identifier.
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
drivers/extcon/extcon-usbc-cros-ec.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-)
drivers/extcon/extcon-usbc-cros-ec.c +5 -15
@@ -1,18 +1,8 @@ -/** -* drivers/extcon/extcon-usbc-cros-ec - ChromeOS Embedded Controller extcon -* -* Copyright (C) 2017 Google, Inc -* Author: Benson Leung <[email protected]> -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// ChromeOS Embedded Controller extcon +// +// Copyright (C) 2012 Google, Inc. +// Author: Benson Leung <[email protected]> #include <linux/extcon-provider.h> #include <linux/kernel.h>
Signature · 1 line
2.17.1
Chanwoo Choi
maintainerRe: [PATCH 8/9] extcon: usbc-cros-ec: Switch to SPDX identifier.
Quoted 22 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/extcon/extcon-usbc-cros-ec.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-)drivers/extcon/extcon-usbc-cros-ec.c +0
-8@@ -1,18 +1,8 @@ -/** -* drivers/extcon/extcon-usbc-cros-ec - ChromeOS Embedded Controller extcon> - * -* Copyright (C) 2017 Google, Inc -* Author: Benson Leung <[email protected]> -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms.
drivers/extcon/extcon-usbc-cros-ec.c line 4
Quoted 10 lines
drivers/extcon/extcon-usbc-cros-ec.c +4
-6-* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// ChromeOS Embedded Controller extcon +// +// Copyright (C) 2012 Google, Inc.
2012 is right?
The original copyright has '2017' year information.
Quoted 5 lines
drivers/extcon/extcon-usbc-cros-ec.c +1
-0+// Author: Benson Leung <[email protected]> #include <linux/extcon-provider.h> #include <linux/kernel.h>
Signature · 3 lines
Best Regards, Chanwoo Choi Samsung Electronics
Re: [PATCH 8/9] extcon: usbc-cros-ec: Switch to SPDX identifier.
Quoted 27 lines · Chanwoo Choi
Quoted 26 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management.
Signed-off-by Enric Balletbo i Serra <[email protected]>---
drivers/extcon/extcon-usbc-cros-ec.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-)drivers/extcon/extcon-usbc-cros-ec.c +0
-12@@ -1,18 +1,8 @@ -/** -* drivers/extcon/extcon-usbc-cros-ec - ChromeOS Embedded Controller extcon> - * -* Copyright (C) 2017 Google, Inc -* Author: Benson Leung <[email protected]> -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Quoted 8 lines
drivers/extcon/extcon-usbc-cros-ec.c line 4
Quoted 6 lines
drivers/extcon/extcon-usbc-cros-ec.c +4
-2-* GNU General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// ChromeOS Embedded Controller extcon +// +// Copyright (C) 2012 Google, Inc. 2012 is right?
No, sorry, copy paste error.
Quoted 2 lines
The original copyright has '2017' year information.
Should be 2017.
Quoted 7 lines
Quoted 5 lines
drivers/extcon/extcon-usbc-cros-ec.c +1
-0+// Author: Benson Leung <[email protected]> #include <linux/extcon-provider.h> #include <linux/kernel.h>
PATCH 9/9 i2c: i2c-cros-ec-tunnel: Switch to SPDX identifier.
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
drivers/i2c/busses/i2c-cros-ec-tunnel.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-)
drivers/i2c/busses/i2c-cros-ec-tunnel.c +4 -10
@@ -1,13 +1,7 @@ -/* -* Copyright (C) 2013 Google, Inc -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* Expose an I2C passthrough to the ChromeOS EC. -*/ +// SPDX-License-Identifier: GPL-2.0+ +// Expose an I2C passthrough to the ChromeOS EC. +// +// Copyright (C) 2013 Google, Inc. #include <linux/module.h> #include <linux/i2c.h>
Signature · 1 line
2.17.1