From patchwork Tue Sep 25 07:09:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 147401 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp378118lji; Tue, 25 Sep 2018 00:10:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV60pFAvQSSUXc98+rItVADldwCYQ6Byf3nkvK5T0a1wOC7ULvNT81EPRSK5TqHcIYKP43tPS X-Received: by 2002:a17:902:bc4a:: with SMTP id t10-v6mr2228369plz.66.1537859403186; Tue, 25 Sep 2018 00:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537859403; cv=none; d=google.com; s=arc-20160816; b=mMtrbcShs0SXxCyRhMA1Hxry2taRLqBgWQ3j10bn6HSNTJiiDUq67CntetOpp34/rm pbeKLIPTCw+BYcuBS51ssYjZfMT8ylppAyW5k71wyG6jrngJVFDFgp4Xsg9zFPW/73cx XWNt4jktbxv9CJtqwUVF2NdNjA+CGoyvATDuohbYe1/lo3qPdd87NuZa/dpUm3+9O82L Q7LWOHje9rALbD6/VKNnn0njXvBcw01nX6uPd5WlJ8pPa9uFxj17HJo5Lx64Vlzi5FvY ybL6HcCpbmn7h812ek7AWAGt+MCcRaypyI1cIURmlkuzbrOTidyr5GwktvmCfGucIu+R ZrCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Xi+uqYav34yJcPbrLI+TBYuCo+dSvHYd503NpQmrtjE=; b=NpSUDP7bV9nfcW9HG+Fj8zVvqsTQglIPsChllesY9UQiCS3hSThO3zo677HPaP8Vxa qXQ3jCfJ4U3Xcr6t50Jc22wNFV84MYyQaIeEGnJdWCJuHcWxm8WreImAU4qFG1MrN5X4 b1IkziQwEfBRoYe+aQ1RSbsDKZoqpkMYClWHimeyEk4CW6UYxdrtvlBvrZgiNdtmkbJ6 L4sb7jw/9GWaLbBZXf8TbMcIIigyVg8/HmtitS/nQNv9++M8BH3EFNcz9oWm9+9eBCHJ 3Y9YNinXl7wxTAU+NPbjyDZGS1JeqT4yJ7SbTy4imjdaXZlT0xxdkYNYjXfbPMIXUM6S 3Uww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Q21ftc/S"; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u90-v6si1548570pfk.82.2018.09.25.00.10.02; Tue, 25 Sep 2018 00:10:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Q21ftc/S"; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726125AbeIYNQK (ORCPT + 5 others); Tue, 25 Sep 2018 09:16:10 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35409 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbeIYNQJ (ORCPT ); Tue, 25 Sep 2018 09:16:09 -0400 Received: by mail-lj1-f194.google.com with SMTP id j25-v6so628818ljg.2 for ; Tue, 25 Sep 2018 00:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Xi+uqYav34yJcPbrLI+TBYuCo+dSvHYd503NpQmrtjE=; b=Q21ftc/SCWOrD9a8XeP9Rp9WDS2wY+ptZ+9Zuv+I4GZtb2tfxeWOI/ExuaqJpzp10E VYlk75ww/podooNUX1ftxFlVKYNlm0BuByoIJaY1gFuI6LjfQFx/vAFx8819EY1YU3Si +LO9keQS+zW0+QIqizy8QyiTxE1WDacmhCLqE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Xi+uqYav34yJcPbrLI+TBYuCo+dSvHYd503NpQmrtjE=; b=d91QFQyrpnhYIpntjPrZsUwkqab4HBFwepeuytjhV1MOaTdRZ/nDAT5aDyy8nhn7e7 w2hvz7qY/k8AcXA6aNwSmmQ3kG33nJa/Mq7uGtrvuN8iDAE9ZIhOHXBhrPgAqQVzSKPI UDzPosp1M3UeugWuQvAxuFT6uxudCdlTtTxLbzI6xw8SfKCwtC6ck6zeQZJTx4WK7Y05 5S52nRiuZ57e1bZ3rlS+NvodwTboRrKKIIZERjdJb/ardy/6JwI+fp/6cEzPFIWq9Hz9 nfPGS1cxMEkpjXXH2TOPZVIUBBuBzgCFYCso9iJRuDWONQ3FbxAejfo1seYDwO1Jn4sW hMsA== X-Gm-Message-State: ABuFfohpg61KPLWIB+8ENgXSHU5H94t6peo18hYytXnrlrj2hIMG3s8f Bk3Yf5nJ5J8aDMTUVgqN0yLLMDL+QYQ= X-Received: by 2002:a2e:1248:: with SMTP id t69-v6mr1453472lje.129.1537859398770; Tue, 25 Sep 2018 00:09:58 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id z1-v6sm261801lfe.94.2018.09.25.00.09.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 00:09:57 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij Subject: [PATCH] gpio: Use SPDX header for core library Date: Tue, 25 Sep 2018 09:09:56 +0200 Message-Id: <20180925070956.24917-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Use the SPDX headers and cut down on boilerplate to indicate the license in the core gpiolib implementation. Signed-off-by: Linus Walleij --- drivers/gpio/devres.c | 12 ++---------- drivers/gpio/gpio-mmio.c | 6 +----- drivers/gpio/gpiolib-acpi.c | 5 +---- drivers/gpio/gpiolib-devprop.c | 5 +---- drivers/gpio/gpiolib-legacy.c | 1 + drivers/gpio/gpiolib-of.c | 6 +----- drivers/gpio/gpiolib-sysfs.c | 1 + drivers/gpio/gpiolib.c | 1 + drivers/gpio/gpiolib.h | 5 +---- 9 files changed, 10 insertions(+), 32 deletions(-) -- 2.17.1 diff --git a/drivers/gpio/devres.c b/drivers/gpio/devres.c index e82cc763633c..01959369360b 100644 --- a/drivers/gpio/devres.c +++ b/drivers/gpio/devres.c @@ -1,14 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* - * drivers/gpio/devres.c - managed gpio resources - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * devres.c - managed gpio resources * This file is based on kernel/irq/devres.c * * Copyright (c) 2011 John Crispin diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c index 935292a30c99..50bdc29591c0 100644 --- a/drivers/gpio/gpio-mmio.c +++ b/drivers/gpio/gpio-mmio.c @@ -1,14 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Generic driver for memory-mapped GPIO controllers. * * Copyright 2008 MontaVista Software, Inc. * Copyright 2008,2010 Anton Vorontsov * - * 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. - * * ....``.```~~~~````.`.`.`.`.```````'',,,.........`````......`....... * ...`` ```````.. * ..The simplest form of a GPIO controller that the driver supports is`` diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 79271e08eea5..3fd3887d9ba8 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ACPI helpers for GPIO API * * Copyright (C) 2012, Intel Corporation * Authors: Mathias Nyman * Mika Westerberg - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. */ #include diff --git a/drivers/gpio/gpiolib-devprop.c b/drivers/gpio/gpiolib-devprop.c index f748aa3e77f7..43443b2c32a8 100644 --- a/drivers/gpio/gpiolib-devprop.c +++ b/drivers/gpio/gpiolib-devprop.c @@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Device property helpers for GPIO chips. * * Copyright (C) 2016, Intel Corporation * Author: Mika Westerberg - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. */ #include diff --git a/drivers/gpio/gpiolib-legacy.c b/drivers/gpio/gpiolib-legacy.c index 8b830996fe02..30e2476a6dc4 100644 --- a/drivers/gpio/gpiolib-legacy.c +++ b/drivers/gpio/gpiolib-legacy.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 #include #include diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 9985b748b14d..cb8ceddf05ac 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -1,14 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * OF helpers for the GPIO API * * Copyright (c) 2007-2008 MontaVista Software, Inc. * * Author: Anton Vorontsov - * - * 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. */ #include diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c index 3d7c90fe7189..fbf6b1a0a4fa 100644 --- a/drivers/gpio/gpiolib-sysfs.c +++ b/drivers/gpio/gpiolib-sysfs.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 #include #include #include diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 03d15d84bdd8..1ffd3fb88466 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 #include #include #include diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index f23a0c681494..7b5dcef1605b 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -1,12 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Internal GPIO functions. * * Copyright (C) 2013, Intel Corporation * Author: Mika Westerberg - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. */ #ifndef GPIOLIB_H