Skip to contentSkip to conversation

platform/chrome: switch to SPDX license and some minor cleanup

PATCH In review Enric Balletbo i Serra 2 participants 15 messages Jan 29, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 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 v3:
- Add Reviewed-by tags.
- cros_ec_i2c: Fix SPDX license tag.
- cros_ec_spi: Fix SPDX license tag.

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.

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
#1 lore raw

PATCH v3 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 v3:
- Add Reviewed-by tags.

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
index b0693fdec8c6..d13770785fb5 100644
@@ -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
#2 lore raw

PATCH v3 2/12 platform/chrome: cros_ec_debugfs: switch to SPDX identifier

In reply to Enric Balletbo i Serra

Adopt the SPDX license identifier headers to ease license compliance management.

---

Changes in v3: None
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
index 6cacac53dfce..900c7073c46f 100644
@@ -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
#3 lore raw

PATCH v3 3/12 platform/chrome: cros_ec_lightbar: switch to SPDX identifier

In reply to Enric Balletbo i Serra

Adopt the SPDX license identifier headers to ease license compliance management.

---

Changes in v3: None
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
index c3e4e6e5211d..37689ad79544 100644
@@ -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
#4 lore raw

PATCH v3 4/12 platform/chrome: cros_ec_sysfs: switch to SPDX identifier

In reply to Enric Balletbo i Serra

Adopt the SPDX license identifier headers to ease license compliance management. Also change the description for one more appropriate.

---

Changes in v3: None
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
index 0ff5aa30c070..01c420727ee1 100644
@@ -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
#5 lore raw

PATCH v3 5/12 platform/chrome: cros_ec_vbc: switch to SPDX identifier

In reply to Enric Balletbo i Serra

Adopt the SPDX license identifier headers to ease license compliance management.

---

Changes in v3: None
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
index af9bfe6f385c..8392a1ec33a7 100644
@@ -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
#6 lore raw

PATCH v3 6/12 platform/chrome: cros_ec_i2c: switch to SPDX identifier

In reply to 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.

---

Changes in v3:
- cros_ec_i2c: Fix SPDX license tag.

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
index 739b985c97e1..419d1b9fa143 100644
@@ -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
Reviewed-by on v3 6/12
#7 lore raw

Re: [PATCH v3 06/12] platform/chrome: cros_ec_i2c: 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 description for a more descriptive phrase.

Quoted 47 lines

---

Changes in v3:
- cros_ec_i2c: Fix SPDX license tag.

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 -17
index 739b985c97e1..419d1b9fa143 100644
@@ -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");
--

2.20.1

#8 lore raw

PATCH v3 7/12 platform/chrome: cros_ec_lpc: switch to SPDX identifier

In reply to 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.

---

Changes in v3: None
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
index 14684a56e40f..c9c240fbe7c6 100644
@@ -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
index c4edfa83e493..296554a82b83 100644
@@ -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
index 105068c0e919..68b381f2eb50 100644
@@ -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
index fc23d535c404..72fc3f6bff90 100644
@@ -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
index 1c12c38b306a..416fd2572182 100644
@@ -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
#9 lore raw

PATCH v3 8/12 platform/chrome: cros_ec_proto: switch to SPDX identifier

In reply to Enric Balletbo i Serra

Adopt the SPDX license identifier headers to ease license compliance management.

---

Changes in v3: None
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
index d2ba662fc713..d259ff264e9d 100644
@@ -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
#10 lore raw

PATCH v3 9/12 platform/chrome: cros_ec_spi: switch to SPDX identifier

In reply to Enric Balletbo i Serra

Adopt the SPDX license identifier headers to ease license compliance management. Also change the description for one more appropriate.

---

Changes in v3:
- cros_ec_spi: Fix SPDX license tag.

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
index 2be41e8afa47..63020d000c3d 100644
@@ -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
Reviewed-by on v3 9/12
#11 lore raw

Re: [PATCH v3 09/12] platform/chrome: cros_ec_spi: 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.

Quoted 45 lines

---

Changes in v3:
- cros_ec_spi: Fix SPDX license tag.

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 -16
index 2be41e8afa47..63020d000c3d 100644
@@ -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");
--

2.20.1

#12 lore raw

PATCH v3 10/12 platform/chrome: cros_kbd_led_backlight: switch to SPDX identifier

In reply to 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.

---

Changes in v3: None
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
index ca3e4da852b4..aa409f0201fb 100644
@@ -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
#13 lore raw

PATCH v3 11/12 platform/chrome: cros_ec_lightbar: remove pr_fmt() define

In reply to Enric Balletbo i Serra

This driver no longer has any pr_{level} messages. Remove the pr_fmt().

---

Changes in v3: None
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
index 37689ad79544..d30a6650b0b5 100644
@@ -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
#14 lore raw

PATCH v3 12/12 platform/chrome: cros_ec_sysfs: remove pr_fmt() define

In reply to Enric Balletbo i Serra

This driver no longer has any pr_{level} messages. Remove the pr_fmt().

---

Changes in v3: None
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
index 01c420727ee1..fe0b7614ae1b 100644
@@ -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