* [PATCH 0/9] croc_ec: Switch to SPDX identifier @ 2018-06-05 9:22 Enric Balletbo i Serra 2018-06-05 9:22 ` [PATCH 4/9] iio: cros_ec: " Enric Balletbo i Serra 0 siblings, 1 reply; 3+ messages in thread From: Enric Balletbo i Serra @ 2018-06-05 9:22 UTC (permalink / raw) To: linux-kernel Cc: Gwendal Grignou, kernel, Tony Luck, Alessandro Zummo, Paolo Cretaro, linux-iio, Alexandre Belloni, linux-i2c, Olof Johansson, linux-rtc, Anton Vorontsov, Chanwoo Choi, Benson Leung, linux-input, Dmitry Torokhov, Jonathan Cameron, Peter Meerwald-Stadler, linux-pwm, Thierry Reding, MyungJoo Ham, Lee Jones, Hartmut Knaack, Colin Cross, Kees Cook, Lars-Peter Clausen 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(-) -- 2.17.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 4/9] iio: cros_ec: Switch to SPDX identifier. 2018-06-05 9:22 [PATCH 0/9] croc_ec: Switch to SPDX identifier Enric Balletbo i Serra @ 2018-06-05 9:22 ` Enric Balletbo i Serra 2018-06-10 13:40 ` Jonathan Cameron 0 siblings, 1 reply; 3+ messages in thread From: Enric Balletbo i Serra @ 2018-06-05 9:22 UTC (permalink / raw) To: linux-kernel Cc: Gwendal Grignou, kernel, Paolo Cretaro, linux-iio, Hartmut Knaack, Lars-Peter Clausen, Jonathan Cameron, Peter Meerwald-Stadler Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> --- 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(-) diff --git a/drivers/iio/accel/cros_ec_accel_legacy.c b/drivers/iio/accel/cros_ec_accel_legacy.c index 063e89eff791..e7350ddec328 100644 --- a/drivers/iio/accel/cros_ec_accel_legacy.c +++ b/drivers/iio/accel/cros_ec_accel_legacy.c @@ -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 <gwendal@chromium.org> #include <linux/delay.h> #include <linux/device.h> diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c index 705cb3e72663..3dbc90baf6bb 100644 --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c +++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c @@ -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> diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c index a620eb5ce202..05221994197c 100644 --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c @@ -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> diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h index 2edf68dc7336..a9935489030e 100644 --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h +++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h @@ -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 diff --git a/drivers/iio/light/cros_ec_light_prox.c b/drivers/iio/light/cros_ec_light_prox.c index 8e8a0e7f78d1..8635e1c18cd5 100644 --- a/drivers/iio/light/cros_ec_light_prox.c +++ b/drivers/iio/light/cros_ec_light_prox.c @@ -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> diff --git a/drivers/iio/pressure/cros_ec_baro.c b/drivers/iio/pressure/cros_ec_baro.c index 4599fde4dd25..8e134d65d18d 100644 --- a/drivers/iio/pressure/cros_ec_baro.c +++ b/drivers/iio/pressure/cros_ec_baro.c @@ -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> -- 2.17.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 4/9] iio: cros_ec: Switch to SPDX identifier. 2018-06-05 9:22 ` [PATCH 4/9] iio: cros_ec: " Enric Balletbo i Serra @ 2018-06-10 13:40 ` Jonathan Cameron 0 siblings, 0 replies; 3+ messages in thread From: Jonathan Cameron @ 2018-06-10 13:40 UTC (permalink / raw) To: Enric Balletbo i Serra Cc: linux-kernel, Gwendal Grignou, kernel, Paolo Cretaro, linux-iio, Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler On Tue, 5 Jun 2018 11:22:04 +0200 Enric Balletbo i Serra <enric.balletbo@collabora.com> wrote: > Adopt the SPDX license identifier headers to ease license compliance > management. > > Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> 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 > --- > > 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(-) > > diff --git a/drivers/iio/accel/cros_ec_accel_legacy.c b/drivers/iio/accel/cros_ec_accel_legacy.c > index 063e89eff791..e7350ddec328 100644 > --- a/drivers/iio/accel/cros_ec_accel_legacy.c > +++ b/drivers/iio/accel/cros_ec_accel_legacy.c > @@ -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 <gwendal@chromium.org> > > #include <linux/delay.h> > #include <linux/device.h> > diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c > index 705cb3e72663..3dbc90baf6bb 100644 > --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c > +++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c > @@ -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> > diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c > index a620eb5ce202..05221994197c 100644 > --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c > +++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c > @@ -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> > diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h > index 2edf68dc7336..a9935489030e 100644 > --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h > +++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h > @@ -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 > diff --git a/drivers/iio/light/cros_ec_light_prox.c b/drivers/iio/light/cros_ec_light_prox.c > index 8e8a0e7f78d1..8635e1c18cd5 100644 > --- a/drivers/iio/light/cros_ec_light_prox.c > +++ b/drivers/iio/light/cros_ec_light_prox.c > @@ -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> > diff --git a/drivers/iio/pressure/cros_ec_baro.c b/drivers/iio/pressure/cros_ec_baro.c > index 4599fde4dd25..8e134d65d18d 100644 > --- a/drivers/iio/pressure/cros_ec_baro.c > +++ b/drivers/iio/pressure/cros_ec_baro.c > @@ -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> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-06-10 13:40 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-06-05 9:22 [PATCH 0/9] croc_ec: Switch to SPDX identifier Enric Balletbo i Serra 2018-06-05 9:22 ` [PATCH 4/9] iio: cros_ec: " Enric Balletbo i Serra 2018-06-10 13:40 ` Jonathan Cameron
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).