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/hab | |
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/hab')
-rw-r--r-- | drivers/hab/Makefile | 1 | ||||
-rw-r--r-- | drivers/hab/hab.c | 11 | ||||
-rw-r--r-- | drivers/hab/habv3.c | 11 | ||||
-rw-r--r-- | drivers/hab/habv4.c | 10 |
4 files changed, 4 insertions, 29 deletions
diff --git a/drivers/hab/Makefile b/drivers/hab/Makefile index b169a1346d..3b5269d090 100644 --- a/drivers/hab/Makefile +++ b/drivers/hab/Makefile @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_HABV4) += habv4.o obj-$(CONFIG_HABV3) += habv3.o obj-$(CONFIG_HAB) += hab.o diff --git a/drivers/hab/hab.c b/drivers/hab/hab.c index a346e01567..b400da65b0 100644 --- a/drivers/hab/hab.c +++ b/drivers/hab/hab.c @@ -1,13 +1,4 @@ -/* - * 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; version 2. - * - * 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 #define pr_fmt(fmt) "HAB: " fmt #include <common.h> diff --git a/drivers/hab/habv3.c b/drivers/hab/habv3.c index f3f94bc44c..a26fd63805 100644 --- a/drivers/hab/habv3.c +++ b/drivers/hab/habv3.c @@ -1,13 +1,4 @@ -/* - * 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; version 2. - * - * 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 #define pr_fmt(fmt) "HABv3: " fmt #include <init.h> diff --git a/drivers/hab/habv4.c b/drivers/hab/habv4.c index d58768fa54..9101fc1cae 100644 --- a/drivers/hab/habv4.c +++ b/drivers/hab/habv4.c @@ -1,16 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2014, 2015 Marc Kleine-Budde <mkl@pengutronix.de> * Copyright (C) 2010 Freescale Semiconductor, 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. */ #define pr_fmt(fmt) "HABv4: " fmt |