From 514409643092ef4c1a4d1311bfa89eebc06d6ece Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Sun, 4 Mar 2018 10:37:34 +0100 Subject: [PATCH] core: use SPDX license identifier Use the SPDX license identifier for LGPLv2.1 or later in core source files. Signed-off-by: Bartosz Golaszewski --- src/Makefile.am | 9 ++++----- src/lib/Makefile.am | 9 ++++----- src/lib/core.c | 6 +----- src/lib/ctxless.c | 6 +----- src/lib/helpers.c | 6 +----- src/lib/iter.c | 6 +----- src/lib/misc.c | 6 +----- src/tools/Makefile.am | 9 ++++----- src/tools/gpiodetect.c | 6 +----- src/tools/gpiofind.c | 6 +----- src/tools/gpioget.c | 6 +----- src/tools/gpioinfo.c | 6 +----- src/tools/gpiomon.c | 6 +----- src/tools/gpioset.c | 6 +----- src/tools/tools-common.c | 8 ++------ src/tools/tools-common.h | 6 +----- 16 files changed, 26 insertions(+), 81 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 8711a95..e8c955d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,10 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + # -# Copyright (C) 2017-2018 Bartosz Golaszewski +# This file is part of libgpiod. # -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or (at -# your option) any later version. +# Copyright (C) 2017-2018 Bartosz Golaszewski # SUBDIRS = lib diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 56c6c97..94c2a84 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -1,10 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + # -# Copyright (C) 2017-2018 Bartosz Golaszewski +# This file is part of libgpiod. # -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or (at -# your option) any later version. +# Copyright (C) 2017-2018 Bartosz Golaszewski # lib_LTLIBRARIES = libgpiod.la diff --git a/src/lib/core.c b/src/lib/core.c index 22f247d..2d17031 100644 --- a/src/lib/core.c +++ b/src/lib/core.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* Low-level, core library code. */ diff --git a/src/lib/ctxless.c b/src/lib/ctxless.c index 65c9235..d392e93 100644 --- a/src/lib/ctxless.c +++ b/src/lib/ctxless.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* Implementation of the high-level API. */ diff --git a/src/lib/helpers.c b/src/lib/helpers.c index f479a42..02e3876 100644 --- a/src/lib/helpers.c +++ b/src/lib/helpers.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* diff --git a/src/lib/iter.c b/src/lib/iter.c index 3bb2210..5695693 100644 --- a/src/lib/iter.c +++ b/src/lib/iter.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* GPIO chip and line iterators. */ diff --git a/src/lib/misc.c b/src/lib/misc.c index 732d744..d3f9647 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* Misc code that didn't fit anywhere else. */ diff --git a/src/tools/Makefile.am b/src/tools/Makefile.am index 22e1e01..4df18fa 100644 --- a/src/tools/Makefile.am +++ b/src/tools/Makefile.am @@ -1,10 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + # -# Copyright (C) 2017-2018 Bartosz Golaszewski +# This file is part of libgpiod. # -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or (at -# your option) any later version. +# Copyright (C) 2017-2018 Bartosz Golaszewski # AM_CFLAGS = -I$(top_srcdir)/include/ -include $(top_builddir)/config.h diff --git a/src/tools/gpiodetect.c b/src/tools/gpiodetect.c index c6c4ba3..3eabb55 100644 --- a/src/tools/gpiodetect.c +++ b/src/tools/gpiodetect.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include diff --git a/src/tools/gpiofind.c b/src/tools/gpiofind.c index 0231ccd..bcf4e1c 100644 --- a/src/tools/gpiofind.c +++ b/src/tools/gpiofind.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include diff --git a/src/tools/gpioget.c b/src/tools/gpioget.c index e1c6a5c..29943a3 100644 --- a/src/tools/gpioget.c +++ b/src/tools/gpioget.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include diff --git a/src/tools/gpioinfo.c b/src/tools/gpioinfo.c index 68ae91f..c57e06c 100644 --- a/src/tools/gpioinfo.c +++ b/src/tools/gpioinfo.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include diff --git a/src/tools/gpiomon.c b/src/tools/gpiomon.c index 596a572..69dfb0b 100644 --- a/src/tools/gpiomon.c +++ b/src/tools/gpiomon.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include diff --git a/src/tools/gpioset.c b/src/tools/gpioset.c index e77ee60..c11f6a3 100644 --- a/src/tools/gpioset.c +++ b/src/tools/gpioset.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include diff --git a/src/tools/tools-common.c b/src/tools/tools-common.c index 1bc17e2..2fe0c52 100644 --- a/src/tools/tools-common.c +++ b/src/tools/tools-common.c @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * - * Copyright (C) 2017-2018-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. + * Copyright (C) 2017-2018 Bartosz Golaszewski */ /* Common code for GPIO tools. */ diff --git a/src/tools/tools-common.h b/src/tools/tools-common.h index dad18a4..08a9522 100644 --- a/src/tools/tools-common.h +++ b/src/tools/tools-common.h @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #ifndef __GPIOD_TOOLS_COMMON_H__ -- 2.30.2