staging: gs_fpgaboot: add SPDX identifiers
PATCH 1/2 staging: gs_fpgaboot: add SPDX identifiers
This satisfies a checkpatch warning and is the preferred method for notating the license.
The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text.
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 12 +----------- drivers/staging/gs_fpgaboot/gs_fpgaboot.h | 12 +----------- drivers/staging/gs_fpgaboot/io.c | 13 +------------ drivers/staging/gs_fpgaboot/io.h | 12 +----------- 4 files changed, 4 insertions(+), 45 deletions(-)
drivers/staging/gs_fpgaboot/gs_fpgaboot.c +1 -11
@@ -1,14 +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; 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. -*/ +// SPDX-License-Identifier: GPL-2.0+ #include <linux/kernel.h> #include <linux/init.h>
drivers/staging/gs_fpgaboot/gs_fpgaboot.h +1 -11
@@ -1,14 +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; 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. -*/ +/* SPDX-License-Identifier: GPL-2.0+ */ #include <linux/firmware.h>
drivers/staging/gs_fpgaboot/io.c +1 -12
@@ -1,15 +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; 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. -*/ +// SPDX-License-Identifier: GPL-2.0+ #include <linux/kernel.h> #include <linux/init.h>
drivers/staging/gs_fpgaboot/io.h +1 -11
@@ -1,14 +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; 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. -*/ +/* SPDX-License-Identifier: GPL-2.0+ */ #define GPDIR 0#define GPCFG 4/* open drain or not */
Signature · 1 line
2.20.1
PATCH 2/2 staging: gs_fpgaboot: cleanup alignment issue - style
Cleanup alignment issue reported by checkpatch.
CHECK: Alignment should match open parenthesis
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/gs_fpgaboot/io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/gs_fpgaboot/io.c +1 -2
@@ -39,8 +39,7 @@ int xl_supported_prog_bus_width(enum wbus bus_bytes)case bus_2byte:break ;default : -pr_err ("unsupported program bus width %d\n" , - bus_bytes); +pr_err ("unsupported program bus width %d\n" , bus_bytes);return 0 ; }
Signature · 1 line
2.20.1