core: use SPDX license identifier
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 4 Mar 2018 09:37:34 +0000 (10:37 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Sun, 4 Mar 2018 09:39:01 +0000 (10:39 +0100)
Use the SPDX license identifier for LGPLv2.1 or later in core source
files.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
16 files changed:
src/Makefile.am
src/lib/Makefile.am
src/lib/core.c
src/lib/ctxless.c
src/lib/helpers.c
src/lib/iter.c
src/lib/misc.c
src/tools/Makefile.am
src/tools/gpiodetect.c
src/tools/gpiofind.c
src/tools/gpioget.c
src/tools/gpioinfo.c
src/tools/gpiomon.c
src/tools/gpioset.c
src/tools/tools-common.c
src/tools/tools-common.h

index 8711a95a3fadeb488dd22c68e14beb9a6bb950a0..e8c955d63bb8a550f2dd807150fe5ad0c530509c 100644 (file)
@@ -1,10 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
 #
-# Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
+# 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 <bartekgola@gmail.com>
 #
 
 SUBDIRS = lib
index 56c6c9736008bdfbaec055e824460859f754e5cc..94c2a8416e902c7df6c9a7eb0ec1c23d14694335 100644 (file)
@@ -1,10 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
 #
-# Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
+# 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 <bartekgola@gmail.com>
 #
 
 lib_LTLIBRARIES = libgpiod.la
index 22f247dc88b9231e5cb3a3a7d1c70a193bb381ec..2d170316e672ce7a866fede85a8bdd7b61c65d6d 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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. */
index 65c92357da869298d50c1217eff2ebed3f3a279f..d392e93b3c948ae9dfd2bb999bae323e3d376f99 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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. */
index f479a42036a0b45718cc69d0e53baec2dd18bd3b..02e3876ceeda8e0a59004af5cf7f035ea576eef9 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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.
  */
 
 /*
index 3bb22103f7c7a54f4e72c73d0d6aa71c88ab930a..56956935403c514a3d85600c3167000fabd357d6 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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. */
index 732d744e54d86c2252ba38901c44dd74c0e4d872..d3f9647cfa7aef8f5e0d1d0226c3af2e190f3c8f 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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. */
index 22e1e01a11ef3df30159a247a6c8520aa63eddad..4df18fac4f711a59999f433c5a332d19bed69a40 100644 (file)
@@ -1,10 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
 #
-# Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
+# 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 <bartekgola@gmail.com>
 #
 
 AM_CFLAGS = -I$(top_srcdir)/include/ -include $(top_builddir)/config.h
index c6c4ba3cdc2d06f2b9456ad8fed8ba02f3f75bd7..3eabb554acd0172418ff87604445a8f8597b798c 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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 <gpiod.h>
index 0231ccd12668cedf34fbc1554483a56e3fc68c0e..bcf4e1c70d49e08ba5f19fea5d6955169831cff5 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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 <gpiod.h>
index e1c6a5c082ab6acb2d801d50d2ee7a05f0a4be1d..29943a393a51a6903d4804a013a8459b7cedb9d2 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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 <gpiod.h>
index 68ae91f28353b771dc0cd5ee8009ebcf1ad2a9ff..c57e06cdbdb0fd8f3f2737c448efd1f5aaa63bd8 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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 <gpiod.h>
index 596a57279e0d004e3b7bdf2306e943c6002e5584..69dfb0b66ee3e27ff13bdf4c2256860488d66f2b 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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 <gpiod.h>
index e77ee60e9fd2d6950a15dc0471d731a3e0539bc7..c11f6a33115f70c8929adfa5cf895ab3ddc807e4 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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 <gpiod.h>
index 1bc17e261970a25bd1ac8e7e9d0de2c70d0c4dbe..2fe0c52ee56a8ab51ff5c226012e5d82ee2d6e96 100644 (file)
@@ -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 <bartekgola@gmail.com>
- *
- * 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 <bartekgola@gmail.com>
  */
 
 /* Common code for GPIO tools. */
index dad18a444586ef37c4566d4008b2beaca8476756..08a9522cdb2c0de9dd03e9bbcc80039cf0e6bbdd 100644 (file)
@@ -1,12 +1,8 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 /*
  * This file is part of libgpiod.
  *
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
- *
- * 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__