Skip to content

Commit e65a978

Browse files
committed
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 <[email protected]>
1 parent c10d6e3 commit e65a978

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+86
-556
lines changed

backend.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
12
/*
23
* libiio - Library for interfacing industrial I/O (IIO) devices
34
*
45
* Copyright (C) 2017 Analog Devices, Inc.
56
* Author: Paul Cercueil <[email protected]>
6-
*
7-
* This library is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU Lesser General Public
9-
* License as published by the Free Software Foundation; either
10-
* version 2.1 of the License, or (at your option) any later version.
11-
*
12-
* This library is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
* Lesser General Public License for more details.
167
*/
178

189
#include "iio-config.h"

bindings/csharp/Attr.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
12
/*
23
* libiio - Library for interfacing industrial I/O (IIO) devices
34
*
45
* Copyright (C) 2015 Analog Devices, Inc.
56
* Author: Paul Cercueil <[email protected]>
6-
*
7-
* This library is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU Lesser General Public
9-
* License as published by the Free Software Foundation; either
10-
* version 2.1 of the License, or (at your option) any later version.
11-
*
12-
* This library is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
* Lesser General Public License for more details.
16-
*
17-
* */
7+
*/
188

199
using System;
2010
using System.Collections.Generic;

bindings/csharp/Channel.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
12
/*
23
* libiio - Library for interfacing industrial I/O (IIO) devices
34
*
45
* Copyright (C) 2015 Analog Devices, Inc.
56
* Author: Paul Cercueil <[email protected]>
6-
*
7-
* This library is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU Lesser General Public
9-
* License as published by the Free Software Foundation; either
10-
* version 2.1 of the License, or (at your option) any later version.
11-
*
12-
* This library is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
* Lesser General Public License for more details.
16-
*
17-
* */
7+
*/
188

199
using System;
2010
using System.Collections.Generic;

bindings/csharp/Context.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
12
/*
23
* libiio - Library for interfacing industrial I/O (IIO) devices
34
*
45
* Copyright (C) 2015 Analog Devices, Inc.
56
* Author: Paul Cercueil <[email protected]>
6-
*
7-
* This library is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU Lesser General Public
9-
* License as published by the Free Software Foundation; either
10-
* version 2.1 of the License, or (at your option) any later version.
11-
*
12-
* This library is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
* Lesser General Public License for more details.
16-
*
17-
* */
7+
*/
188

199
using System;
2010
using System.Collections.Generic;

bindings/csharp/Device.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
12
/*
23
* libiio - Library for interfacing industrial I/O (IIO) devices
34
*
45
* Copyright (C) 2015 Analog Devices, Inc.
56
* Author: Paul Cercueil <[email protected]>
6-
*
7-
* This library is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU Lesser General Public
9-
* License as published by the Free Software Foundation; either
10-
* version 2.1 of the License, or (at your option) any later version.
11-
*
12-
* This library is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
* Lesser General Public License for more details.
16-
*
17-
* */
7+
*/
188

199
using System;
2010
using System.Collections.Generic;

bindings/csharp/IOBuffer.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
12
/*
23
* libiio - Library for interfacing industrial I/O (IIO) devices
34
*
45
* Copyright (C) 2015 Analog Devices, Inc.
56
* Author: Paul Cercueil <[email protected]>
6-
*
7-
* This library is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU Lesser General Public
9-
* License as published by the Free Software Foundation; either
10-
* version 2.1 of the License, or (at your option) any later version.
11-
*
12-
* This library is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
* Lesser General Public License for more details.
16-
*
17-
* */
7+
*/
188

199
using System;
2010
using System.Collections.Generic;

bindings/csharp/IioLib.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
12
/*
23
* libiio - Library for interfacing industrial I/O (IIO) devices
34
*
45
* Copyright (C) 2020 Analog Devices, Inc.
56
* Author: Paul Cristian Iacob <[email protected]>
6-
*
7-
* This library is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU Lesser General Public
9-
* License as published by the Free Software Foundation; either
10-
* version 2.1 of the License, or (at your option) any later version.
11-
*
12-
* This library is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
* Lesser General Public License for more details.
16-
*
17-
* */
7+
*/
188

199
using System;
2010
using System.Linq;

bindings/csharp/ScanContext.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
12
/*
23
* libiio - Library for interfacing industrial I/O (IIO) devices
34
*
45
* Copyright (C) 2020 Analog Devices, Inc.
56
* Author: Cristian Iacob <[email protected]>
6-
*
7-
* This library is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU Lesser General Public
9-
* License as published by the Free Software Foundation; either
10-
* version 2.1 of the License, or (at your option) any later version.
11-
*
12-
* This library is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
* Lesser General Public License for more details.
16-
*
17-
* */
7+
*/
188

199
using System;
2010
using System.Collections.Generic;

bindings/csharp/Trigger.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1+
// SPDX-License-Identifier: LGPL-2.1-or-later
12
/*
23
* libiio - Library for interfacing industrial I/O (IIO) devices
34
*
45
* Copyright (C) 2015 Analog Devices, Inc.
56
* Author: Paul Cercueil <[email protected]>
6-
*
7-
* This library is free software; you can redistribute it and/or
8-
* modify it under the terms of the GNU Lesser General Public
9-
* License as published by the Free Software Foundation; either
10-
* version 2.1 of the License, or (at your option) any later version.
11-
*
12-
* This library is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15-
* Lesser General Public License for more details.
16-
*
17-
* */
7+
*/
188

199
using System;
2010
using System.Collections.Generic;

bindings/python/iio.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
#!/usr/bin/env python
2+
# SPDX-License-Identifier: LGPL-2.1-or-later
23
"""
4+
SPDX-License-Identifier: LGPL-2.1-or-later
5+
36
Copyright (C) 2014 Analog Devices, Inc.
47
Author: Paul Cercueil <[email protected]>
5-
6-
This library is free software; you can redistribute it and/or
7-
modify it under the terms of the GNU Lesser General Public
8-
License as published by the Free Software Foundation; either
9-
version 2.1 of the License, or (at your option) any later version.
10-
11-
This library is distributed in the hope that it will be useful,
12-
but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14-
Lesser General Public License for more details.
158
"""
169

1710
# Imports from package ctypes are not grouped

0 commit comments

Comments
 (0)