diff options
author | Tom Rini <trini@konsulko.com> | 2018-05-06 17:58:06 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-07 09:34:12 -0400 |
commit | 83d290c56fab2d38cd1ab4c4cc7099559c1d5046 (patch) | |
tree | 5e5d1b40b52aaf96b707e0da2474573306d22f7b /drivers/crypto | |
parent | 7ce85318cfff5fd82a059131761559cba7fef309 (diff) |
SPDX: Convert all of our single license tags to Linux Kernel style
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.
In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.
This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/Makefile | 4 | ||||
-rw-r--r-- | drivers/crypto/ace_sha.c | 3 | ||||
-rw-r--r-- | drivers/crypto/ace_sha.h | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/Makefile | 4 | ||||
-rw-r--r-- | drivers/crypto/fsl/desc.h | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/desc_constr.h | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/error.c | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/fsl_blob.c | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/fsl_hash.c | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/fsl_hash.h | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/fsl_rsa.c | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/jobdesc.c | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/jobdesc.h | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/jr.c | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/jr.h | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/rsa_caam.h | 3 | ||||
-rw-r--r-- | drivers/crypto/fsl/sec.c | 3 | ||||
-rw-r--r-- | drivers/crypto/rsa_mod_exp/Makefile | 4 | ||||
-rw-r--r-- | drivers/crypto/rsa_mod_exp/mod_exp_sw.c | 3 | ||||
-rw-r--r-- | drivers/crypto/rsa_mod_exp/mod_exp_uclass.c | 3 |
20 files changed, 20 insertions, 43 deletions
diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index fb8c10b38c..efbd1d3fca 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -1,9 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ # # Copyright (c) 2013 Samsung Electronics Co., Ltd. # http://www.samsung.com -# -# SPDX-License-Identifier: GPL-2.0+ -# obj-$(CONFIG_EXYNOS_ACE_SHA) += ace_sha.o obj-y += rsa_mod_exp/ diff --git a/drivers/crypto/ace_sha.c b/drivers/crypto/ace_sha.c index 8f3b8b2614..34611056ec 100644 --- a/drivers/crypto/ace_sha.c +++ b/drivers/crypto/ace_sha.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Advanced Crypto Engine - SHA Firmware * Copyright (c) 2012 Samsung Electronics - * - * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include "ace_sha.h" diff --git a/drivers/crypto/ace_sha.h b/drivers/crypto/ace_sha.h index f1097f72dc..a671b925b6 100644 --- a/drivers/crypto/ace_sha.h +++ b/drivers/crypto/ace_sha.h @@ -1,9 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Header file for Advanced Crypto Engine - SFR definitions * * Copyright (c) 2012 Samsung Electronics - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __ACE_SHA_H diff --git a/drivers/crypto/fsl/Makefile b/drivers/crypto/fsl/Makefile index ea878e1822..cfb36f3bb9 100644 --- a/drivers/crypto/fsl/Makefile +++ b/drivers/crypto/fsl/Makefile @@ -1,8 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ # # Copyright 2014 Freescale Semiconductor, Inc. -# -# SPDX-License-Identifier: GPL-2.0+ -# obj-y += sec.o obj-$(CONFIG_FSL_CAAM) += jr.o fsl_hash.o jobdesc.o error.o diff --git a/drivers/crypto/fsl/desc.h b/drivers/crypto/fsl/desc.h index 081bce53cf..11ad506829 100644 --- a/drivers/crypto/fsl/desc.h +++ b/drivers/crypto/fsl/desc.h @@ -1,11 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * CAAM descriptor composition header * Definitions to support CAAM descriptor instruction generation * * Copyright 2008-2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * * Based on desc.h file in linux drivers/crypto/caam */ diff --git a/drivers/crypto/fsl/desc_constr.h b/drivers/crypto/fsl/desc_constr.h index 7dad753981..cb112283ac 100644 --- a/drivers/crypto/fsl/desc_constr.h +++ b/drivers/crypto/fsl/desc_constr.h @@ -1,10 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * caam descriptor construction helper functions * * Copyright 2008-2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * * Based on desc_constr.h file in linux drivers/crypto/caam */ diff --git a/drivers/crypto/fsl/error.c b/drivers/crypto/fsl/error.c index 28cdcdd4cc..731c748443 100644 --- a/drivers/crypto/fsl/error.c +++ b/drivers/crypto/fsl/error.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * CAAM Error Reporting * * Copyright 2009-2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * * Derived from error.c file in linux drivers/crypto/caam */ diff --git a/drivers/crypto/fsl/fsl_blob.c b/drivers/crypto/fsl/fsl_blob.c index cb315dfd89..ce6aa05fe7 100644 --- a/drivers/crypto/fsl/fsl_blob.c +++ b/drivers/crypto/fsl/fsl_blob.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * */ #include <common.h> diff --git a/drivers/crypto/fsl/fsl_hash.c b/drivers/crypto/fsl/fsl_hash.c index 9373a39931..c2686df02f 100644 --- a/drivers/crypto/fsl/fsl_hash.c +++ b/drivers/crypto/fsl/fsl_hash.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * */ #include <common.h> diff --git a/drivers/crypto/fsl/fsl_hash.h b/drivers/crypto/fsl/fsl_hash.h index f5be651d7a..82057c83c3 100644 --- a/drivers/crypto/fsl/fsl_hash.h +++ b/drivers/crypto/fsl/fsl_hash.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * */ #ifndef _SHA_H diff --git a/drivers/crypto/fsl/fsl_rsa.c b/drivers/crypto/fsl/fsl_rsa.c index 5471504b6e..c5c76e319f 100644 --- a/drivers/crypto/fsl/fsl_rsa.c +++ b/drivers/crypto/fsl/fsl_rsa.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2014 Freescale Semiconductor, Inc. * Author: Ruchika Gupta <ruchika.gupta@freescale.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #include <config.h> diff --git a/drivers/crypto/fsl/jobdesc.c b/drivers/crypto/fsl/jobdesc.c index aadf851101..317f73c42b 100644 --- a/drivers/crypto/fsl/jobdesc.c +++ b/drivers/crypto/fsl/jobdesc.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * SEC Descriptor Construction Library * Basic job descriptor construction * * Copyright 2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * */ #include <common.h> diff --git a/drivers/crypto/fsl/jobdesc.h b/drivers/crypto/fsl/jobdesc.h index 75c9424c4a..d782c46b9d 100644 --- a/drivers/crypto/fsl/jobdesc.h +++ b/drivers/crypto/fsl/jobdesc.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * */ #ifndef __JOBDESC_H diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index 34bd070426..cc8d3b02a5 100644 --- a/drivers/crypto/fsl/jr.c +++ b/drivers/crypto/fsl/jr.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2008-2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * * Based on CAAM driver in drivers/crypto/caam in Linux */ diff --git a/drivers/crypto/fsl/jr.h b/drivers/crypto/fsl/jr.h index ef515e74f8..f6fbb44383 100644 --- a/drivers/crypto/fsl/jr.h +++ b/drivers/crypto/fsl/jr.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2008-2014 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * */ #ifndef __JR_H diff --git a/drivers/crypto/fsl/rsa_caam.h b/drivers/crypto/fsl/rsa_caam.h index 4ff87efc5b..9a6a8afa4a 100644 --- a/drivers/crypto/fsl/rsa_caam.h +++ b/drivers/crypto/fsl/rsa_caam.h @@ -1,7 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2014 Freescale Semiconductor, Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __RSA_CAAM_H diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c index 470e662d8e..a2c0bfaf44 100644 --- a/drivers/crypto/fsl/sec.c +++ b/drivers/crypto/fsl/sec.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2014 Freescale Semiconductor, Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> diff --git a/drivers/crypto/rsa_mod_exp/Makefile b/drivers/crypto/rsa_mod_exp/Makefile index ae3dcf3d7a..7e829d3c10 100644 --- a/drivers/crypto/rsa_mod_exp/Makefile +++ b/drivers/crypto/rsa_mod_exp/Makefile @@ -1,8 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ # # (C) Copyright 2014 Freescale Semiconductor, Inc. -# -# SPDX-License-Identifier: GPL-2.0+ -# obj-$(CONFIG_RSA) += mod_exp_uclass.o obj-$(CONFIG_RSA_SOFTWARE_EXP) += mod_exp_sw.o diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c index 3817fb3e47..5a098f83cc 100644 --- a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c +++ b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2014 Freescale Semiconductor, Inc. * Author: Ruchika Gupta <ruchika.gupta@freescale.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #include <config.h> diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c index 266f09484f..93deaa7f51 100644 --- a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c +++ b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2014 Freescale Semiconductor, Inc * Author: Ruchika Gupta <ruchika.gupta@freescale.com> - * - * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> |