diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-10-30 19:56:32 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-01 11:29:53 +0100 |
commit | 28f4a6a4df76f0f1581d1fad86b4efbd6f2c9816 (patch) | |
tree | 86751dca3ab673ccb675e1572301b17ad9514807 /drivers/led | |
parent | 2e18869590b665c232e995c4efe0d0bd1683f8c7 (diff) | |
download | barebox-28f4a6a4df76f0f1581d1fad86b4efbd6f2c9816.tar.gz barebox-28f4a6a4df76f0f1581d1fad86b4efbd6f2c9816.tar.xz |
drivers: add missing SPDX-License-Identifier
This adds the suitable SPDX-License-Identifier to all files in drivers/
that previously lacked one.
To aid manual inspection, following heuristics can be used:
* No changes outside of comments/whitespace:
git show -U0 HEAD | rg -v '^(@@|diff|index)|[-+]([-+]|//|#|[\s/]\*)'
* -or-later come in pairs:
git show --inter-hunk-context=19 HEAD | \
perl -0777 -F'/^@/gm' -ne 'for (@F) { @m = /later/g; print if @m & 1 }'
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20211030175632.2276077-4-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/led')
-rw-r--r-- | drivers/led/Kconfig | 1 | ||||
-rw-r--r-- | drivers/led/Makefile | 1 | ||||
-rw-r--r-- | drivers/led/core.c | 12 | ||||
-rw-r--r-- | drivers/led/led-gpio.c | 12 | ||||
-rw-r--r-- | drivers/led/led-pca955x.c | 11 | ||||
-rw-r--r-- | drivers/led/led-pwm.c | 12 | ||||
-rw-r--r-- | drivers/led/led-triggers.c | 12 |
7 files changed, 7 insertions, 54 deletions
diff --git a/drivers/led/Kconfig b/drivers/led/Kconfig index 2a5920a7bd..85999c3875 100644 --- a/drivers/led/Kconfig +++ b/drivers/led/Kconfig @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 menuconfig LED bool "LED support" select POLLER diff --git a/drivers/led/Makefile b/drivers/led/Makefile index 35693a7f6b..9bc37d59a5 100644 --- a/drivers/led/Makefile +++ b/drivers/led/Makefile @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_LED) += core.o obj-$(CONFIG_LED_GPIO) += led-gpio.o obj-$(CONFIG_LED_PWM) += led-pwm.o diff --git a/drivers/led/core.c b/drivers/led/core.c index ab171c6184..fe79f75571 100644 --- a/drivers/led/core.c +++ b/drivers/led/core.c @@ -1,18 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * core LED support for barebox * * (C) Copyright 2010 Sascha Hauer, Pengutronix - * - * 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. - * */ #include <common.h> diff --git a/drivers/led/led-gpio.c b/drivers/led/led-gpio.c index 5055b82381..1a5eda0371 100644 --- a/drivers/led/led-gpio.c +++ b/drivers/led/led-gpio.c @@ -1,18 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * gpio LED support for barebox * * (C) Copyright 2010 Sascha Hauer, Pengutronix - * - * 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. - * */ #include <common.h> #include <init.h> diff --git a/drivers/led/led-pca955x.c b/drivers/led/led-pca955x.c index 07bc26a50b..848feb9773 100644 --- a/drivers/led/led-pca955x.c +++ b/drivers/led/led-pca955x.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2007-2008 Extreme Engineering Solutions, Inc. * Author: Nate Case <ncase@xes-inc.com> @@ -5,16 +6,6 @@ * Copyright (C) 2018 WAGO Kontakttechnik GmbH & Co. KG <http://global.wago.com> * Author: Oleg Karfich <oleg.karfich@wago.com> * - * 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. - * * This code was ported from linux-4.18 kernel driver. * Orginal code with it's copyright info can be found in * drivers/leds/leds-pca955x.c diff --git a/drivers/led/led-pwm.c b/drivers/led/led-pwm.c index 90c2ca929a..071e219d73 100644 --- a/drivers/led/led-pwm.c +++ b/drivers/led/led-pwm.c @@ -1,18 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * pwm LED support for barebox * * (C) Copyright 2010 Sascha Hauer, Pengutronix - * - * 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. - * */ #include <common.h> #include <malloc.h> diff --git a/drivers/led/led-triggers.c b/drivers/led/led-triggers.c index 07dc622d0f..cba94d5461 100644 --- a/drivers/led/led-triggers.c +++ b/drivers/led/led-triggers.c @@ -1,18 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * LED trigger support for barebox * * (C) Copyright 2010 Sascha Hauer, Pengutronix - * - * 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. - * */ #include <common.h> |