From e65a97863c3481f30c6ea8642bda86125a7ee39d Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Tue, 6 Apr 2021 12:11:43 +0100 Subject: [PATCH] Use SPDX license headers Use simple SPDX license strings instead of having paragraphs of text about the license in the header of every single source file of the project. Signed-off-by: Paul Cercueil --- backend.c | 11 +---------- bindings/csharp/Attr.cs | 14 ++------------ bindings/csharp/Channel.cs | 14 ++------------ bindings/csharp/Context.cs | 14 ++------------ bindings/csharp/Device.cs | 14 ++------------ bindings/csharp/IOBuffer.cs | 14 ++------------ bindings/csharp/IioLib.cs | 14 ++------------ bindings/csharp/ScanContext.cs | 14 ++------------ bindings/csharp/Trigger.cs | 14 ++------------ bindings/python/iio.py | 13 +++---------- bindings/python/setup.py.cmakein | 11 +---------- buffer.c | 14 ++------------ channel.c | 14 ++------------ context.c | 14 ++------------ debug.h | 14 ++------------ device.c | 14 ++------------ dns_sd.c | 14 ++------------ dns_sd_avahi.c | 14 ++------------ dns_sd_bonjour.c | 14 ++------------ dns_sd_windows.c | 11 +---------- iio-backend.h | 14 ++------------ iio-lock.h | 12 +----------- iio-private.h | 14 ++------------ iio.h | 14 ++------------ iiod-client.c | 12 +----------- iiod-client.h | 12 +----------- iiod/iiod.c | 14 ++------------ iiod/lexer.l | 14 ++------------ iiod/ops.c | 14 ++------------ iiod/ops.h | 14 ++------------ iiod/parser.y | 14 ++------------ iiod/thread-pool.c | 11 +---------- iiod/thread-pool.h | 11 +---------- iiod/usbd.c | 11 +---------- local.c | 14 ++------------ lock.c | 12 +----------- network.c | 14 ++------------ network.h | 14 ++------------ scan.c | 11 +---------- serial.c | 14 ++------------ sort.c | 14 ++------------ sort.h | 14 ++------------ tests/gen_code.c | 14 ++------------ tests/gen_code.h | 14 ++------------ tests/iio_stresstest.c | 14 ++------------ usb.c | 14 ++------------ utilities.c | 14 ++------------ xml.c | 14 ++------------ 48 files changed, 86 insertions(+), 556 deletions(-) diff --git a/backend.c b/backend.c index daf234466..bf6f1f37b 100644 --- a/backend.c +++ b/backend.c @@ -1,18 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2017 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. */ #include "iio-config.h" diff --git a/bindings/csharp/Attr.cs b/bindings/csharp/Attr.cs index 8c54adf3c..547c7cb47 100644 --- a/bindings/csharp/Attr.cs +++ b/bindings/csharp/Attr.cs @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ using System; using System.Collections.Generic; diff --git a/bindings/csharp/Channel.cs b/bindings/csharp/Channel.cs index 1761337b3..017a07228 100644 --- a/bindings/csharp/Channel.cs +++ b/bindings/csharp/Channel.cs @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ using System; using System.Collections.Generic; diff --git a/bindings/csharp/Context.cs b/bindings/csharp/Context.cs index 258774324..39355b6e7 100644 --- a/bindings/csharp/Context.cs +++ b/bindings/csharp/Context.cs @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ using System; using System.Collections.Generic; diff --git a/bindings/csharp/Device.cs b/bindings/csharp/Device.cs index f8a8d42f9..760e7858e 100644 --- a/bindings/csharp/Device.cs +++ b/bindings/csharp/Device.cs @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ using System; using System.Collections.Generic; diff --git a/bindings/csharp/IOBuffer.cs b/bindings/csharp/IOBuffer.cs index 2241b54f3..eb87571e0 100644 --- a/bindings/csharp/IOBuffer.cs +++ b/bindings/csharp/IOBuffer.cs @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ using System; using System.Collections.Generic; diff --git a/bindings/csharp/IioLib.cs b/bindings/csharp/IioLib.cs index 93cfbc31a..523ccdaeb 100644 --- a/bindings/csharp/IioLib.cs +++ b/bindings/csharp/IioLib.cs @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2020 Analog Devices, Inc. * Author: Paul Cristian Iacob - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ using System; using System.Linq; diff --git a/bindings/csharp/ScanContext.cs b/bindings/csharp/ScanContext.cs index 313890f4d..492c6fbe2 100644 --- a/bindings/csharp/ScanContext.cs +++ b/bindings/csharp/ScanContext.cs @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2020 Analog Devices, Inc. * Author: Cristian Iacob - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ using System; using System.Collections.Generic; diff --git a/bindings/csharp/Trigger.cs b/bindings/csharp/Trigger.cs index 8a2df04ef..58e4a197f 100644 --- a/bindings/csharp/Trigger.cs +++ b/bindings/csharp/Trigger.cs @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ using System; using System.Collections.Generic; diff --git a/bindings/python/iio.py b/bindings/python/iio.py index a0159b1e5..b7908da8a 100644 --- a/bindings/python/iio.py +++ b/bindings/python/iio.py @@ -1,17 +1,10 @@ #!/usr/bin/env python +# SPDX-License-Identifier: LGPL-2.1-or-later """ +SPDX-License-Identifier: LGPL-2.1-or-later + Copyright (C) 2014 Analog Devices, Inc. Author: Paul Cercueil - -This library 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. - -This library 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 -Lesser General Public License for more details. """ # Imports from package ctypes are not grouped diff --git a/bindings/python/setup.py.cmakein b/bindings/python/setup.py.cmakein index dfbcc3bf4..c5d12e8ba 100644 --- a/bindings/python/setup.py.cmakein +++ b/bindings/python/setup.py.cmakein @@ -1,17 +1,8 @@ #!/usr/bin/env python +# SPDX-License-Identifier: LGPL-2.1-or-later # # Copyright (C) 2015 Analog Devices, Inc. # Author: Paul Cercueil -# -# This library 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. -# -# This library 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 -# Lesser General Public License for more details. import sys diff --git a/buffer.c b/buffer.c index 6c1d27f0e..dadcc3075 100644 --- a/buffer.c +++ b/buffer.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014-2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "iio-config.h" #include "iio-private.h" diff --git a/channel.c b/channel.c index 6134d707d..d64fef140 100644 --- a/channel.c +++ b/channel.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "debug.h" #include "iio-private.h" diff --git a/context.c b/context.c index 1a34b6416..f01e6b5da 100644 --- a/context.c +++ b/context.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "debug.h" #include "iio-config.h" diff --git a/debug.h b/debug.h index 65b4e4478..75230f104 100644 --- a/debug.h +++ b/debug.h @@ -1,20 +1,10 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #ifndef DEBUG_H #define DEBUG_H diff --git a/device.c b/device.c index 2af04b3cf..15a767edf 100644 --- a/device.c +++ b/device.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "debug.h" #include "iio-private.h" diff --git a/dns_sd.c b/dns_sd.c index 7a27061b0..ccfd16387 100644 --- a/dns_sd.c +++ b/dns_sd.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * @@ -5,21 +6,10 @@ * Author: Robin Getz * Matej Kenda * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * * Some of this is insipred from libavahi's example: * https://avahi.org/doxygen/html/client-browse-services_8c-example.html * which is also LGPL 2.1 or later. - * - * */ + */ #include "iio-lock.h" #include "iio-private.h" diff --git a/dns_sd_avahi.c b/dns_sd_avahi.c index c9d2e24e4..24cdcb205 100644 --- a/dns_sd_avahi.c +++ b/dns_sd_avahi.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * @@ -5,21 +6,10 @@ * Author: Paul Cercueil * Robin Getz * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * * Some of this is insipred from libavahi's example: * https://avahi.org/doxygen/html/client-browse-services_8c-example.html * which is also LGPL 2.1 or later. - * - * */ + */ #include "debug.h" #include "iio-private.h" diff --git a/dns_sd_bonjour.c b/dns_sd_bonjour.c index 424538226..3f911c9f9 100644 --- a/dns_sd_bonjour.c +++ b/dns_sd_bonjour.c @@ -1,21 +1,11 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2020 Matej Kenda. * Author: Matej Kenda gmail.com> * Robin Getz - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include diff --git a/dns_sd_windows.c b/dns_sd_windows.c index 48d545093..c035fb8a4 100644 --- a/dns_sd_windows.c +++ b/dns_sd_windows.c @@ -1,19 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014-2020 Analog Devices, Inc. * Author: Adrian Suciu * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * * Based on https://github.com/mjansson/mdns/blob/ce2e4f789f06429008925ff8f18c22036e60201e/mdns.c * which is Licensed under Public Domain */ diff --git a/iio-backend.h b/iio-backend.h index 217c70276..097ae1e9d 100644 --- a/iio-backend.h +++ b/iio-backend.h @@ -1,19 +1,9 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2020 Analog Devices, Inc. - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #ifndef __IIO_BACKEND_H__ #define __IIO_BACKEND_H__ diff --git a/iio-lock.h b/iio-lock.h index 612a92582..3ee0f1c1a 100644 --- a/iio-lock.h +++ b/iio-lock.h @@ -1,19 +1,9 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * */ #ifndef _IIO_LOCK_H diff --git a/iio-private.h b/iio-private.h index 22d5959a3..0579b6dfe 100644 --- a/iio-private.h +++ b/iio-private.h @@ -1,20 +1,10 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #ifndef __IIO_PRIVATE_H__ #define __IIO_PRIVATE_H__ diff --git a/iio.h b/iio.h index 5a30c0d4b..f597963d0 100644 --- a/iio.h +++ b/iio.h @@ -1,20 +1,10 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ /** @file iio.h * @brief Public interface */ diff --git a/iiod-client.c b/iiod-client.c index b6a9af842..dbf3b2bea 100644 --- a/iiod-client.c +++ b/iiod-client.c @@ -1,19 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014-2020 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * */ #include "debug.h" diff --git a/iiod-client.h b/iiod-client.h index 14e230f45..37a274686 100644 --- a/iiod-client.h +++ b/iiod-client.h @@ -1,19 +1,9 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * */ #ifndef _IIOD_CLIENT_H diff --git a/iiod/iiod.c b/iiod/iiod.c index 9b2376e8a..351817388 100644 --- a/iiod/iiod.c +++ b/iiod/iiod.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "../debug.h" #include "../iio.h" diff --git a/iiod/lexer.l b/iiod/lexer.l index 8511c2e18..36a680348 100644 --- a/iiod/lexer.l +++ b/iiod/lexer.l @@ -1,21 +1,11 @@ %{ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "parser.h" #include "ops.h" diff --git a/iiod/ops.c b/iiod/ops.c index 6caa706c6..184c751e3 100644 --- a/iiod/ops.c +++ b/iiod/ops.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "ops.h" #include "parser.h" diff --git a/iiod/ops.h b/iiod/ops.h index 86bd8321a..885c01490 100644 --- a/iiod/ops.h +++ b/iiod/ops.h @@ -1,20 +1,10 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #ifndef __OPS_H__ #define __OPS_H__ diff --git a/iiod/parser.y b/iiod/parser.y index a414fe26f..163157dd3 100644 --- a/iiod/parser.y +++ b/iiod/parser.y @@ -1,21 +1,11 @@ %{ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "ops.h" #include "parser.h" diff --git a/iiod/thread-pool.c b/iiod/thread-pool.c index b3a152ddc..d8fa6b833 100644 --- a/iiod/thread-pool.c +++ b/iiod/thread-pool.c @@ -1,18 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2016 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. */ #include "thread-pool.h" diff --git a/iiod/thread-pool.h b/iiod/thread-pool.h index 9dbe72aab..3b83d5693 100644 --- a/iiod/thread-pool.h +++ b/iiod/thread-pool.h @@ -1,18 +1,9 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2016 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. */ #ifndef __THREAD_POOL_H__ diff --git a/iiod/usbd.c b/iiod/usbd.c index 6321fe546..2299cf8e3 100644 --- a/iiod/usbd.c +++ b/iiod/usbd.c @@ -1,18 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2016 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. */ #include "../debug.h" diff --git a/local.c b/local.c index ffbf7d58d..0c48db600 100644 --- a/local.c +++ b/local.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "debug.h" #include "iio-private.h" diff --git a/lock.c b/lock.c index cabb2140a..75ca39736 100644 --- a/lock.c +++ b/lock.c @@ -1,19 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * */ #include "iio-config.h" diff --git a/network.c b/network.c index e836308ac..505bd443a 100644 --- a/network.c +++ b/network.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014-2020 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "iio-config.h" #include "iio-private.h" diff --git a/network.h b/network.h index fb0b22c07..5451fab9b 100644 --- a/network.h +++ b/network.h @@ -1,21 +1,11 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014-2020 Analog Devices, Inc. * Author: Paul Cercueil * Robin Getz - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #ifndef __IIO_NET_PRIVATE_H #define __IIO_NET_PRIVATE_H diff --git a/scan.c b/scan.c index 6cc9dc305..63fffbe27 100644 --- a/scan.c +++ b/scan.c @@ -1,18 +1,9 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2016 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. */ #include "iio-config.h" diff --git a/serial.c b/serial.c index 5a6a48f5c..17a5476b1 100644 --- a/serial.c +++ b/serial.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014-2016 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "debug.h" #include "iio-private.h" diff --git a/sort.c b/sort.c index f90123c45..04187e102 100644 --- a/sort.c +++ b/sort.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2018 Analog Devices, Inc. * Author: Robin Getz - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "iio-private.h" #include diff --git a/sort.h b/sort.h index 9f7cf33ae..66953518d 100644 --- a/sort.h +++ b/sort.h @@ -1,20 +1,10 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2018 Analog Devices, Inc. * Author: Robin Getz - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #ifndef __IIO_QSORT_H__ #define __IIO_QSORT_H__ diff --git a/tests/gen_code.c b/tests/gen_code.c index 9038ae4f0..3a1b31e3f 100644 --- a/tests/gen_code.c +++ b/tests/gen_code.c @@ -1,21 +1,11 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014, 2019 Analog Devices, Inc. * Author: Paul Cercueil * Robin Getz - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include #include diff --git a/tests/gen_code.h b/tests/gen_code.h index dbe6ffa64..c7be971d3 100644 --- a/tests/gen_code.h +++ b/tests/gen_code.h @@ -1,21 +1,11 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014, 2019 Analog Devices, Inc. * Author: Paul Cercueil * Robin Getz - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #ifndef GEN_CODE_H #define GEN_CODE_H diff --git a/tests/iio_stresstest.c b/tests/iio_stresstest.c index 4a2d56e57..f696e8247 100644 --- a/tests/iio_stresstest.c +++ b/tests/iio_stresstest.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #define _DEFAULT_SOURCE diff --git a/usb.c b/usb.c index 71eb4ffba..1109375a3 100644 --- a/usb.c +++ b/usb.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2015 - 2020 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "iio-lock.h" #include "iio-private.h" diff --git a/utilities.c b/utilities.c index 494e4f546..804188659 100644 --- a/utilities.c +++ b/utilities.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ /* Force the XSI version of strerror_r */ #undef _GNU_SOURCE diff --git a/xml.c b/xml.c index ea72248b0..eda0c62f8 100644 --- a/xml.c +++ b/xml.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* * libiio - Library for interfacing industrial I/O (IIO) devices * * Copyright (C) 2014 Analog Devices, Inc. * Author: Paul Cercueil - * - * This library 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. - * - * This library 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 - * Lesser General Public License for more details. - * - * */ + */ #include "debug.h" #include "iio-private.h"