summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2020-05-19 18:52:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-25 07:48:28 +0200
commit4a5171d28931c779085f41c3ba29be4d7e2d6416 (patch)
tree1aa754ef1412c8a0044c444c9854537f68131e0b
parentc10b20dc83ac25b1d81c39eaad4529d9911813b1 (diff)
downloadbarebox-4a5171d28931c779085f41c3ba29be4d7e2d6416.tar.gz
barebox-4a5171d28931c779085f41c3ba29be4d7e2d6416.tar.xz
pwm: Replace license and copyright boilerplate by SPDX identfiers
This adapts all files that were identifed by licensecheck (https://salsa.debian.org/build-common-team/licensecheck.git) as licensed under the GPL and that have a (IMHO) clear copyright statement. The advantage is that these specifiers are machine-parseable which helps license conformance, e.g. for packaging barebox in Debian. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/pwm/core.c15
-rw-r--r--drivers/pwm/pwm-mxs.c12
-rw-r--r--drivers/pwm/pxa_pwm.c6
3 files changed, 7 insertions, 26 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index 05dad93e5c..878f4d72bb 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -1,17 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-FileCopyrightText: 2011 Sascha Hauer <s.hauer@pengutronix.de>
+
/*
* Generic pwmlib implementation
- *
- * Copyright (C) 2011 Sascha Hauer <s.hauer@pengutronix.de>
- *
- * 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, 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.
*/
#include <common.h>
#include <errno.h>
diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
index a06040ac32..08819b43bc 100644
--- a/drivers/pwm/pwm-mxs.c
+++ b/drivers/pwm/pwm-mxs.c
@@ -1,13 +1,5 @@
-/*
- * Copyright 2012 Freescale Semiconductor, Inc.
- *
- * The code contained herein is licensed under the GNU General Public
- * License. You may obtain a copy of the GNU General Public License
- * Version 2 or later at the following locations:
- *
- * http://www.opensource.org/licenses/gpl-license.html
- * http://www.gnu.org/copyleft/gpl.html
- */
+// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-FileCopyrightText: 2012 Freescale Semiconductor, Inc.
#include <common.h>
#include <init.h>
diff --git a/drivers/pwm/pxa_pwm.c b/drivers/pwm/pxa_pwm.c
index 78d1489d57..dc8e41464b 100644
--- a/drivers/pwm/pxa_pwm.c
+++ b/drivers/pwm/pxa_pwm.c
@@ -1,10 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
/*
* simple driver for PWM (Pulse Width Modulator) controller
*
- * 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.
- *
* 2008-02-13 initial version eric miao <eric.miao@marvell.com>
* 2012 Robert Jarzmik <robert.jarzmik@free.fr>
*/