Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1224770imm; Tue, 5 Jun 2018 10:58:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJNfRBnJHoT63N3VWMwVs3F2q5yDQz3eG41o+dB4k0E1JO6BtnTVZRkNJm4wpYF4HstTAdl X-Received: by 2002:aa7:85c9:: with SMTP id z9-v6mr20063689pfn.55.1528221515617; Tue, 05 Jun 2018 10:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528221515; cv=none; d=google.com; s=arc-20160816; b=CoCaLZ/5LAUrPyQMyQZpX2RRy0r2t/G69G4APxZ45RSd9ab2mIoHnkulg+CnhCdzWd vQB2PLOmeuTS+cfhZOv2YdtJw7ls1rlhf2jgTiavxJp7Ci7lAS9AVIOE5X+x5x/CTBwJ nSCKtI1mxIQSh/DLgFj3XPVl9R1PJmx1RFrqhflcVEk31C5GvGb2GMoGNR5c0gxaS6ql fzq5rdUYe5KGG3LW+iIumXjvC3/EuLxFP5Ynb+ihu9+FTC8s7BpRSA7tx9TLUs5eo56X 8tGi0QvOyQp+Kd/AEnL3QfBX48IQHMK+YZC+CWxEVhnOY42tNNgzwnp/hIsn+l3+qdsN ouxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=W691clyYOtWTHxLpptmBjKP/mKNZ/SZC3LyF0PsswDg=; b=wWJl2tyQ4+Ib6YPcH4OCkZTQF7TXXGkiG8K7+98heglQF5VxfA/6GCbeFsh1jfiqrt I+RBd4jrCXhrNRS1p14krAhbTaIlRSrDkUV++KqlFhR9IqNkGMjjZZJvjCZqhFXdWePN jfIROaC8+Spw+jZlpVb/42AkSn7coUNk0DajTDdQpGhNFPJeTnqxwt6YjniepyMJnOr0 /IjVpsk07FrkouTCWBuEV+1HJNxpnb8eBJ6jMmOXtGBaTQ6gXByW/tb037Y8X0qHZYWG R0YRWsG4u7OpNbsbKxtIKq5ANXxXAxYdK9FlBTamDzhQHG/J2EuF8722uRzW2kWhpib7 5poA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7-v6si16283079pfl.122.2018.06.05.10.58.21; Tue, 05 Jun 2018 10:58:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753144AbeFER4J (ORCPT + 99 others); Tue, 5 Jun 2018 13:56:09 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:50770 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753285AbeFERym (ORCPT ); Tue, 5 Jun 2018 13:54:42 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id BDB402881F6 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Gwendal Grignou , kernel@collabora.com, Lee Jones Subject: [PATCH v2 3/8] mfd: cros_ec: Add or fix SPDX-License-Identifier in all files. Date: Tue, 5 Jun 2018 19:54:24 +0200 Message-Id: <20180605175429.9072-4-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180605175429.9072-1-enric.balletbo@collabora.com> References: <20180605175429.9072-1-enric.balletbo@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org And get rid of the license text that is no longer necessary. Also fix the license as sometimes doesn't match what the header with the value in the MODULE_LICENSE macro. Assuming that the desired license is GPL-2.0+, all the files are updated to this license version. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: None drivers/mfd/cros_ec.c | 26 ++++++++------------------ drivers/mfd/cros_ec_dev.c | 23 +++++------------------ drivers/mfd/cros_ec_dev.h | 16 ++-------------- drivers/mfd/cros_ec_i2c.c | 18 ++++-------------- drivers/mfd/cros_ec_spi.c | 20 +++++--------------- include/linux/mfd/cros_ec.h | 10 +--------- include/linux/mfd/cros_ec_commands.h | 10 +--------- include/linux/mfd/cros_ec_lpc_mec.h | 14 +++----------- include/linux/mfd/cros_ec_lpc_reg.h | 14 +++----------- 9 files changed, 32 insertions(+), 119 deletions(-) diff --git a/drivers/mfd/cros_ec.c b/drivers/mfd/cros_ec.c index 58e05069163e..5b6a1c541543 100644 --- a/drivers/mfd/cros_ec.c +++ b/drivers/mfd/cros_ec.c @@ -1,21 +1,11 @@ -/* - * ChromeOS EC multi-function device - * - * Copyright (C) 2012 Google, Inc - * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * The ChromeOS EC multi function device is used to mux all the requests - * to the EC device for its multiple features: keyboard controller, - * battery charging and regulator control, firmware update. - */ +// SPDX-License-Identifier: GPL-2.0+ +// ChromeOS EC multi-function device. +// +// Copyright (C) 2012 Google, Inc +// +// The ChromeOS EC multi function device is used to mux all the requests +// to the EC device for its multiple features: keyboard controller, +// battery charging and regulator control, firmware update. #include #include diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c index d37c79426c87..0ce7be132a09 100644 --- a/drivers/mfd/cros_ec_dev.c +++ b/drivers/mfd/cros_ec_dev.c @@ -1,21 +1,8 @@ -/* - * cros_ec_dev - expose the Chrome OS Embedded Controller to user-space - * - * Copyright (C) 2014 Google, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ +// SPDX-License-Identifier: GPL-2.0+ +// Expose the ChromeOS Embedded Controller to user-space. +// +// Copyright (C) 2014 Google, Inc. +// Author: Bill Richardson #include #include diff --git a/drivers/mfd/cros_ec_dev.h b/drivers/mfd/cros_ec_dev.h index 45e9453608c5..a63cf80234c7 100644 --- a/drivers/mfd/cros_ec_dev.h +++ b/drivers/mfd/cros_ec_dev.h @@ -1,20 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* - * cros_ec_dev - expose the Chrome OS Embedded Controller to userspace + * Expose the ChromeOS Embedded Controller to userspace * * Copyright (C) 2014 Google, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . */ #ifndef _CROS_EC_DEV_H_ diff --git a/drivers/mfd/cros_ec_i2c.c b/drivers/mfd/cros_ec_i2c.c index ef9b4763356f..5f3a356467df 100644 --- a/drivers/mfd/cros_ec_i2c.c +++ b/drivers/mfd/cros_ec_i2c.c @@ -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+ +// ChromeOS EC multi-function device (I2C). +// +// Copyright (C) 2012 Google, Inc #include #include diff --git a/drivers/mfd/cros_ec_spi.c b/drivers/mfd/cros_ec_spi.c index 2060d1483043..861ea6dcb816 100644 --- a/drivers/mfd/cros_ec_spi.c +++ b/drivers/mfd/cros_ec_spi.c @@ -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+ +// ChromeOS EC multi-function device (SPI). +// +// Copyright (C) 2012 Google, Inc #include #include @@ -739,5 +729,5 @@ static struct spi_driver cros_ec_driver_spi = { module_spi_driver(cros_ec_driver_spi); -MODULE_LICENSE("GPL v2"); +MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("ChromeOS EC multi function device (SPI)"); diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h index 32421dfeb996..f6ed58166111 100644 --- a/include/linux/mfd/cros_ec.h +++ b/include/linux/mfd/cros_ec.h @@ -1,16 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * ChromeOS EC multi-function device * * Copyright (C) 2012 Google, Inc - * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. */ #ifndef __LINUX_MFD_CROS_EC_H diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h index f2edd9969b40..bf762ae46378 100644 --- a/include/linux/mfd/cros_ec_commands.h +++ b/include/linux/mfd/cros_ec_commands.h @@ -1,17 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Host communication command constants for ChromeOS EC * * Copyright (C) 2012 Google, Inc * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * * The ChromeOS EC multi function device is used to mux all the requests * to the EC device for its multiple features: keyboard controller, * battery charging and regulator control, firmware update. diff --git a/include/linux/mfd/cros_ec_lpc_mec.h b/include/linux/mfd/cros_ec_lpc_mec.h index 176496ddc66c..ba4204f05172 100644 --- a/include/linux/mfd/cros_ec_lpc_mec.h +++ b/include/linux/mfd/cros_ec_lpc_mec.h @@ -1,18 +1,10 @@ +/* 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 + * 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 diff --git a/include/linux/mfd/cros_ec_lpc_reg.h b/include/linux/mfd/cros_ec_lpc_reg.h index 5560bef63c2b..b5a6277cb465 100644 --- a/include/linux/mfd/cros_ec_lpc_reg.h +++ b/include/linux/mfd/cros_ec_lpc_reg.h @@ -1,18 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* - * cros_ec_lpc_reg - LPC access to the Chrome OS Embedded Controller + * LPC register access to the ChromeOS Embedded Controller * * Copyright (C) 2016 Google, Inc * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This driver uses the Chrome OS EC byte-level message-based protocol for + * 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 -- 2.17.1