platform/chrome: switch to SPDX license and some minor cleanup
Subsystems (2)
v2 cover platform/chrome: switch to SPDX license and some minor cleanup
Hi,
After the patchset to move cros_ec sysfs attributes to its own drivers, I'd like to do some cleanup and switch to the SPDX license on all the platform/chrome drivers.
Best regards,
Enric
Changes in v2:
- Removed the patches that remove the unnused includes (were wrong).
- Add patches for all files in platform/chrome that didn't switch yet.
Enric Balletbo i Serra (12):
platform/chrome: cromeos_pstore: switch to SPDX identifier platform/chrome: cros_ec_debugfs: switch to SPDX identifier platform/chrome: cros_ec_lightbar: switch to SPDX identifier platform/chrome: cros_ec_sysfs: switch to SPDX identifier platform/chrome: cros_ec_vbc: switch to SPDX identifier platform/chrome: cros_ec_i2c: switch to SPDX identifier platform/chrome: cros_ec_lpc: switch to SPDX identifier platform/chrome: cros_ec_proto: switch to SPDX identifier platform/chrome: cros_ec_spi: switch to SPDX identifier platform/chrome: cros_kbd_led_backlight: switch to SPDX identifier platform/chrome: cros_ec_lightbar: remove pr_fmt() define platform/chrome: cros_ec_sysfs: remove pr_fmt() define
drivers/platform/chrome/chromeos_pstore.c | 17 ++++------ drivers/platform/chrome/cros_ec_debugfs.c | 22 +++--------- drivers/platform/chrome/cros_ec_i2c.c | 22 ++++-------- drivers/platform/chrome/cros_ec_lightbar.c | 24 +++---------- drivers/platform/chrome/cros_ec_lpc.c | 34 +++++++------------ drivers/platform/chrome/cros_ec_lpc_mec.c | 26 +++----------- drivers/platform/chrome/cros_ec_lpc_mec.h | 20 ++--------- drivers/platform/chrome/cros_ec_lpc_reg.c | 26 +++----------- drivers/platform/chrome/cros_ec_lpc_reg.h | 20 ++--------- drivers/platform/chrome/cros_ec_proto.c | 19 +++-------- drivers/platform/chrome/cros_ec_spi.c | 20 +++-------- drivers/platform/chrome/cros_ec_sysfs.c | 26 +++----------- drivers/platform/chrome/cros_ec_vbc.c | 24 +++---------- .../platform/chrome/cros_kbd_led_backlight.c | 19 +++-------- 14 files changed, 67 insertions(+), 252 deletions(-)
Signature · 1 line
2.20.1
PATCH v2 1/12 platform/chrome: cromeos_pstore: switch to SPDX identifier
Adopt the SPDX license identifier headers to ease license compliance management. Also fix the module license mismatch and change the term 'Chrome OS' for 'ChromeOS' to be coherent with other drivers.
---
Changes in v2:
- Removed the patches that removed the unnused includes (were wrong).
- Add patches for all files in platform/chrome that didn't switch yet.
drivers/platform/chrome/chromeos_pstore.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-)
drivers/platform/chrome/chromeos_pstore.c +6 -11
@@ -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>
@@ -138,5 +133,5 @@ static void __exit chromeos_pstore_exit(void)module_init (chromeos_pstore_init);module_exit (chromeos_pstore_exit); -MODULE_DESCRIPTION ("Chrome OS pstore module" ); -MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("ChromeOS pstore module" ); +MODULE_LICENSE ("GPL v2" );
Signature · 1 line
2.20.1
Re: [PATCH v2 01/12] platform/chrome: cromeos_pstore: switch to SPDX identifier
Quoted 6 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Also fix the module license mismatch and change the term 'Chrome OS' for 'ChromeOS' to be coherent with other drivers.
Signed-off-by Enric Balletbo i Serra <[email protected]>
Quoted 41 lines
---
Changes in v2:
- Removed the patches that removed the unnused includes (were wrong).
- Add patches for all files in platform/chrome that didn't switch yet.drivers/platform/chrome/chromeos_pstore.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-)drivers/platform/chrome/chromeos_pstore.c +6
-12@@ -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> @@ -138,5 +133,5 @@ static void __exit chromeos_pstore_exit(void)module_init (chromeos_pstore_init);module_exit (chromeos_pstore_exit); -MODULE_DESCRIPTION ("Chrome OS pstore module" ); -MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("ChromeOS pstore module" ); +MODULE_LICENSE ("GPL v2" ); --2.20.1
PATCH v2 2/12 platform/chrome: cros_ec_debugfs: switch to SPDX identifier
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
Changes in v2: None
drivers/platform/chrome/cros_ec_debugfs.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 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 the ChromeOS EC +// +// Copyright (C) 2015 Google, Inc. #include <linux/circ_buf.h> #include <linux/debugfs.h>
Signature · 1 line
2.20.1
Re: [PATCH v2 02/12] platform/chrome: cros_ec_debugfs: switch to SPDX identifier
Quoted 5 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]>
Quoted 40 lines
---
Changes in v2: None
drivers/platform/chrome/cros_ec_debugfs.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-)drivers/platform/chrome/cros_ec_debugfs.c +4
-19@@ -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 the ChromeOS EC +// +// Copyright (C) 2015 Google, Inc. #include <linux/circ_buf.h> #include <linux/debugfs.h> --2.20.1
PATCH v2 3/12 platform/chrome: cros_ec_lightbar: switch to SPDX identifier
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
Changes in v2: None
drivers/platform/chrome/cros_ec_lightbar.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-)
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
Signature · 1 line
2.20.1
Re: [PATCH v2 03/12] platform/chrome: cros_ec_lightbar: switch to SPDX identifier
Quoted 5 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]>
Quoted 40 lines
---
Changes in v2: None
drivers/platform/chrome/cros_ec_lightbar.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-)drivers/platform/chrome/cros_ec_lightbar.c +4
-19@@ -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 --2.20.1
PATCH v2 4/12 platform/chrome: cros_ec_sysfs: switch to SPDX identifier
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management. Also change the description for one more appropriate.
---
Changes in v2: None
drivers/platform/chrome/cros_ec_sysfs.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-)
drivers/platform/chrome/cros_ec_sysfs.c +5 -19
@@ -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 ChromeOS EC through sysfs +// +// Copyright (C) 2014 Google, Inc. #define pr_fmt (fmt) "cros_ec_sysfs: " fmt
@@ -389,5 +375,5 @@ static struct platform_driver cros_ec_sysfs_driver = {module_platform_driver (cros_ec_sysfs_driver);MODULE_LICENSE ("GPL" ); -MODULE_DESCRIPTION ("ChromeOS EC control driver" ); +MODULE_DESCRIPTION ("Expose the ChromeOS EC through sysfs" );MODULE_ALIAS ("platform:" DRV_NAME );
Signature · 1 line
2.20.1
Re: [PATCH v2 04/12] platform/chrome: cros_ec_sysfs: switch to SPDX identifier
Quoted 5 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Also change the description for one more appropriate.
Signed-off-by Enric Balletbo i Serra <[email protected]>
Quoted 47 lines
---
Changes in v2: None
drivers/platform/chrome/cros_ec_sysfs.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-)drivers/platform/chrome/cros_ec_sysfs.c +5
-20@@ -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 ChromeOS EC through sysfs +// +// Copyright (C) 2014 Google, Inc. #define pr_fmt (fmt) "cros_ec_sysfs: " fmt@@ -389,5 +375,5 @@ static struct platform_driver cros_ec_sysfs_driver = {module_platform_driver (cros_ec_sysfs_driver);MODULE_LICENSE ("GPL" ); -MODULE_DESCRIPTION ("ChromeOS EC control driver" ); +MODULE_DESCRIPTION ("Expose the ChromeOS EC through sysfs" );MODULE_ALIAS ("platform:" DRV_NAME ); --2.20.1
PATCH v2 5/12 platform/chrome: cros_ec_vbc: switch to SPDX identifier
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
Changes in v2: None
drivers/platform/chrome/cros_ec_vbc.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-)
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>
Signature · 1 line
2.20.1
Re: [PATCH v2 05/12] platform/chrome: cros_ec_vbc: switch to SPDX identifier
Quoted 5 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]>
Quoted 42 lines
---
Changes in v2: None
drivers/platform/chrome/cros_ec_vbc.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-)drivers/platform/chrome/cros_ec_vbc.c +5
-20@@ -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> --2.20.1
PATCH v2 6/12 platform/chrome: cros_ec_i2c: switch to SPDX identifier
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management. Also fix the module license mismatch and change the description for a more descriptive phrase.
---
Changes in v2: None
drivers/platform/chrome/cros_ec_i2c.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-)
drivers/platform/chrome/cros_ec_i2c.c +6 -16
@@ -1,17 +1,7 @@ -/* -* 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+ +// I2C interface for ChromeOS Embedded Controller +// +// Copyright (C) 2012 Google, Inc #include <linux/acpi.h> #include <linux/delay.h>
@@ -373,5 +363,5 @@ static struct i2c_driver cros_ec_driver = {module_i2c_driver (cros_ec_driver); -MODULE_LICENSE ("GPL" ); -MODULE_DESCRIPTION ("ChromeOS EC multi function device" ); +MODULE_LICENSE ("GPL v2" ); +MODULE_DESCRIPTION ("I2C interface for ChromeOS Embedded Controller" );
Signature · 1 line
2.20.1
Re: [PATCH v2 06/12] platform/chrome: cros_ec_i2c: switch to SPDX identifier
Quoted 23 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Also fix the module license mismatch and change the description for a more descriptive phrase.
Signed-off-by Enric Balletbo i Serra <[email protected]>---
Changes in v2: None
drivers/platform/chrome/cros_ec_i2c.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-)drivers/platform/chrome/cros_ec_i2c.c +0
-5@@ -1,17 +1,7 @@ -/* -* ChromeOS EC multi-function device (I2C) -* -* Copyright (C) 2012 Google, Inc -*
drivers/platform/chrome/cros_ec_i2c.c line 1
Quoted 10 lines
drivers/platform/chrome/cros_ec_i2c.c +1
-9-* 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+
Should be GPL 2.0 only.
Quoted 17 lines
drivers/platform/chrome/cros_ec_i2c.c +5
-3+// I2C interface for ChromeOS Embedded Controller +// +// Copyright (C) 2012 Google, Inc #include <linux/acpi.h> #include <linux/delay.h> @@ -373,5 +363,5 @@ static struct i2c_driver cros_ec_driver = {module_i2c_driver (cros_ec_driver); -MODULE_LICENSE ("GPL" ); -MODULE_DESCRIPTION ("ChromeOS EC multi function device" ); +MODULE_LICENSE ("GPL v2" ); +MODULE_DESCRIPTION ("I2C interface for ChromeOS Embedded Controller" ); --2.20.1
PATCH v2 7/12 platform/chrome: cros_ec_lpc: switch to SPDX identifier
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management. Also remove the license boiler-plate and redundant driver description.
---
Changes in v2: None
drivers/platform/chrome/cros_ec_lpc.c | 34 ++++++++--------------- drivers/platform/chrome/cros_ec_lpc_mec.c | 26 +++-------------- drivers/platform/chrome/cros_ec_lpc_mec.h | 20 ++----------- drivers/platform/chrome/cros_ec_lpc_reg.c | 26 +++-------------- drivers/platform/chrome/cros_ec_lpc_reg.h | 20 ++----------- 5 files changed, 24 insertions(+), 102 deletions(-)
drivers/platform/chrome/cros_ec_lpc.c +12 -22
@@ -1,25 +1,15 @@ -/* -* 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 interface for ChromeOS Embedded Controller +// +// Copyright (C) 2012-2015 Google, Inc +// +// This driver uses the ChromeOS 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. #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_mec.h +2 -18
@@ -1,24 +1,8 @@ +/* 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, -* 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. */ #ifndef __CROS_EC_LPC_MEC_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 interface for ChromeOS Embedded Controller +// +// Copyright (C) 2016 Google, Inc #include <linux/io.h> #include <linux/mfd/cros_ec.h>
drivers/platform/chrome/cros_ec_lpc_reg.h +2 -18
@@ -1,24 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* -* cros_ec_lpc_reg - LPC access to the Chrome OS Embedded Controller +* LPC interface for 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, -* 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. */ #ifndef __CROS_EC_LPC_REG_H
Signature · 1 line
2.20.1
Re: [PATCH v2 07/12] platform/chrome: cros_ec_lpc: switch to SPDX identifier
Quoted 6 lines · Enric Balletbo i Serra
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 <[email protected]>
Quoted 186 lines
---
Changes in v2: None
drivers/platform/chrome/cros_ec_lpc.c | 34 ++++++++--------------- drivers/platform/chrome/cros_ec_lpc_mec.c | 26 +++-------------- drivers/platform/chrome/cros_ec_lpc_mec.h | 20 ++----------- drivers/platform/chrome/cros_ec_lpc_reg.c | 26 +++-------------- drivers/platform/chrome/cros_ec_lpc_reg.h | 20 ++----------- 5 files changed, 24 insertions(+), 102 deletions(-)drivers/platform/chrome/cros_ec_lpc.c +12
-22@@ -1,25 +1,15 @@ -/* -* 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 interface for ChromeOS Embedded Controller +// +// Copyright (C) 2012-2015 Google, Inc +// +// This driver uses the ChromeOS 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. #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_mec.h +2
-18@@ -1,24 +1,8 @@ +/* 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, -* 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. */ #ifndef __CROS_EC_LPC_MEC_Hdrivers/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 interface for ChromeOS Embedded Controller +// +// Copyright (C) 2016 Google, Inc #include <linux/io.h> #include <linux/mfd/cros_ec.h> drivers/platform/chrome/cros_ec_lpc_reg.h +2
-19@@ -1,24 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* -* cros_ec_lpc_reg - LPC access to the Chrome OS Embedded Controller +* LPC interface for 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, -* 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. */ #ifndef __CROS_EC_LPC_REG_H --2.20.1
PATCH v2 8/12 platform/chrome: cros_ec_proto: switch to SPDX identifier
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management.
---
Changes in v2: None
drivers/platform/chrome/cros_ec_proto.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-)
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>
Signature · 1 line
2.20.1
Re: [PATCH v2 08/12] platform/chrome: cros_ec_proto: switch to SPDX identifier
Quoted 5 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]>
Quoted 37 lines
---
Changes in v2: None
drivers/platform/chrome/cros_ec_proto.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-)drivers/platform/chrome/cros_ec_proto.c +4
-16@@ -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> --2.20.1
PATCH v2 9/12 platform/chrome: cros_ec_spi: switch to SPDX identifier
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management. Also change the description for one more appropriate.
---
Changes in v2: None
drivers/platform/chrome/cros_ec_spi.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-)
drivers/platform/chrome/cros_ec_spi.c +5 -15
@@ -1,17 +1,7 @@ -/* -* 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+ +// SPI interface for ChromeOS Embedded Controller +// +// Copyright (C) 2012 Google, Inc #include <linux/delay.h> #include <linux/kernel.h>
@@ -730,4 +720,4 @@ static struct spi_driver cros_ec_driver_spi = {module_spi_driver (cros_ec_driver_spi);MODULE_LICENSE ("GPL v2" ); -MODULE_DESCRIPTION ("ChromeOS EC multi function device (SPI)" ); +MODULE_DESCRIPTION ("SPI interface for ChromeOS Embedded Controller" );
Signature · 1 line
2.20.1
Re: [PATCH v2 09/12] platform/chrome: cros_ec_spi: switch to SPDX identifier
Quoted 22 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Also change the description for one more appropriate.
Signed-off-by Enric Balletbo i Serra <[email protected]>---
Changes in v2: None
drivers/platform/chrome/cros_ec_spi.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-)drivers/platform/chrome/cros_ec_spi.c +0
-5@@ -1,17 +1,7 @@ -/* -* ChromeOS EC multi-function device (SPI) -* -* Copyright (C) 2012 Google, Inc -*
drivers/platform/chrome/cros_ec_spi.c line 1
Quoted 10 lines
drivers/platform/chrome/cros_ec_spi.c +1
-9-* 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+
GPL-2.0
Quoted 15 lines
drivers/platform/chrome/cros_ec_spi.c +4
-2+// SPI interface for ChromeOS Embedded Controller +// +// Copyright (C) 2012 Google, Inc #include <linux/delay.h> #include <linux/kernel.h> @@ -730,4 +720,4 @@ static struct spi_driver cros_ec_driver_spi = {module_spi_driver (cros_ec_driver_spi);MODULE_LICENSE ("GPL v2" ); -MODULE_DESCRIPTION ("ChromeOS EC multi function device (SPI)" ); +MODULE_DESCRIPTION ("SPI interface for ChromeOS Embedded Controller" ); --2.20.1
PATCH v2 10/12 platform/chrome: cros_kbd_led_backlight: switch to SPDX identifier
In reply to Enric Balletbo i SerraAdopt the SPDX license identifier headers to ease license compliance management. Also change the term 'Chrome OS' for 'ChromeOS' to be coherent with other drivers.
---
Changes in v2: None
.../platform/chrome/cros_kbd_led_backlight.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-)
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.20.1
Re: [PATCH v2 10/12] platform/chrome: cros_kbd_led_backlight: switch to SPDX identifier
Quoted 6 lines · Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Also change the term 'Chrome OS' for 'ChromeOS' to be coherent with other drivers.
Signed-off-by Enric Balletbo i Serra <[email protected]>
Quoted 37 lines
---
Changes in v2: None
.../platform/chrome/cros_kbd_led_backlight.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-)drivers/platform/chrome/cros_kbd_led_backlight.c +4
-16@@ -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> --2.20.1
PATCH v2 11/12 platform/chrome: cros_ec_lightbar: remove pr_fmt() define
In reply to Enric Balletbo i SerraThis driver no longer has any pr_{level} messages. Remove the pr_fmt().
---
Changes in v2: None
drivers/platform/chrome/cros_ec_lightbar.c | 2 -- 1 file changed, 2 deletions(-)
drivers/platform/chrome/cros_ec_lightbar.c +0 -2
@@ -3,8 +3,6 @@// // Copyright (C) 2014 Google, Inc. -#define pr_fmt (fmt) "cros_ec_lightbar: " fmt -#include <linux/ctype.h> #include <linux/delay.h> #include <linux/device.h>
Signature · 1 line
2.20.1
Re: [PATCH v2 11/12] platform/chrome: cros_ec_lightbar: remove pr_fmt() define
Quoted 4 lines · Enric Balletbo i Serra
This driver no longer has any pr_{level} messages. Remove the
pr_fmt().Signed-off-by Enric Balletbo i Serra <[email protected]>
Quoted 23 lines
---
Changes in v2: None
drivers/platform/chrome/cros_ec_lightbar.c | 2 -- 1 file changed, 2 deletions(-)drivers/platform/chrome/cros_ec_lightbar.c +0
-3@@ -3,8 +3,6 @@// // Copyright (C) 2014 Google, Inc. -#define pr_fmt (fmt) "cros_ec_lightbar: " fmt -#include <linux/ctype.h> #include <linux/delay.h> #include <linux/device.h> --2.20.1
PATCH v2 12/12 platform/chrome: cros_ec_sysfs: remove pr_fmt() define
In reply to Enric Balletbo i SerraThis driver no longer has any pr_{level} messages. Remove the pr_fmt().
---
Changes in v2: None
drivers/platform/chrome/cros_ec_sysfs.c | 2 -- 1 file changed, 2 deletions(-)
drivers/platform/chrome/cros_ec_sysfs.c +0 -2
@@ -3,8 +3,6 @@// // Copyright (C) 2014 Google, Inc. -#define pr_fmt (fmt) "cros_ec_sysfs: " fmt -#include <linux/ctype.h> #include <linux/delay.h> #include <linux/device.h>
Signature · 1 line
2.20.1
Re: [PATCH v2 12/12] platform/chrome: cros_ec_sysfs: remove pr_fmt() define
Quoted 4 lines · Enric Balletbo i Serra
This driver no longer has any pr_{level} messages. Remove the
pr_fmt().Signed-off-by Enric Balletbo i Serra <[email protected]>
Quoted 23 lines
---
Changes in v2: None
drivers/platform/chrome/cros_ec_sysfs.c | 2 -- 1 file changed, 2 deletions(-)drivers/platform/chrome/cros_ec_sysfs.c +0
-3@@ -3,8 +3,6 @@// // Copyright (C) 2014 Google, Inc. -#define pr_fmt (fmt) "cros_ec_sysfs: " fmt -#include <linux/ctype.h> #include <linux/delay.h> #include <linux/device.h> --2.20.1