Add correct SPDX license identifiers to all files

This removes the "boiler-plate" license texts in the individual files to
use SPDX identifiers instead.  Cleans up the text a lot.

All copyright notices were left intact, as this does not change
anything.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Greg Kroah-Hartman 2017-12-08 15:46:10 +01:00
parent 090fd9b7c4
commit f6f293c82d
11 changed files with 34 additions and 179 deletions

View File

@ -1,24 +1,10 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* desc-defs.c -- USB descriptor definitions
*
* Copyright (C) 2017 Michael Drake <michael.drake@codethink.co.uk>
*
* 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.
* USB descriptor definitions
*
* Copyright (C) 2017 Michael Drake <michael.drake@codethink.co.uk>
*/
/*****************************************************************************/
#include "config.h"
#include <stdbool.h>

View File

@ -1,24 +1,10 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* desc-defs.h -- USB descriptor definitions
*
* Copyright (C) 2017 Michael Drake <michael.drake@codethink.co.uk>
*
* 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.
* USB descriptor definitions
*
* Copyright (C) 2017 Michael Drake <michael.drake@codethink.co.uk>
*/
/*****************************************************************************/
#ifndef _DESC_DEFS_H
#define _DESC_DEFS_H

View File

@ -1,24 +1,10 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* desc-dump.c -- USB descriptor dumping
*
* Copyright (C) 2017 Michael Drake <michael.drake@codethink.co.uk>
*
* 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.
* USB descriptor dumping
*
* Copyright (C) 2017 Michael Drake <michael.drake@codethink.co.uk>
*/
/*****************************************************************************/
#include "config.h"
#include <stdbool.h>

View File

@ -1,24 +1,10 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* desc-dump.h -- USB descriptor dumping
*
* Copyright (C) 2017 Michael Drake <michael.drake@codethink.co.uk>
*
* 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.
* USB descriptor dumping
*
* Copyright (C) 2017 Michael Drake <michael.drake@codethink.co.uk>
*/
/*****************************************************************************/
#ifndef _DESC_DUMP_H
#define _DESC_DUMP_H

23
lsusb.c
View File

@ -1,26 +1,11 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* lsusb.c -- lspci like utility for the USB bus
*
* Copyright (C) 1999-2001, 2003
* Thomas Sailer (t.sailer@alumni.ethz.ch)
* Copyright (C) 2003-2005 David Brownell
*
* 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.
* lspci like utility for the USB bus
*
* Copyright (C) 1999-2001, 2003 Thomas Sailer (t.sailer@alumni.ethz.ch)
* Copyright (C) 2003-2005 David Brownell
*/
/*****************************************************************************/
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>

22
names.c
View File

@ -1,25 +1,11 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* names.c -- USB name database manipulation routines
*
* Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch)
* Copyright (C) 2013 Tom Gundersen (teg@jklm.no)
*
* 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.
*
* USB name database manipulation routines
*
* Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch)
* Copyright (C) 2013 Tom Gundersen (teg@jklm.no)
*/
/*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

21
names.h
View File

@ -1,25 +1,10 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* names.h -- USB name database manipulation routines
*
* Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch)
*
* 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.
*
* USB name database manipulation routines
*
* Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch)
*/
/*****************************************************************************/
#ifndef _NAMES_H
#define _NAMES_H

View File

@ -1,12 +1,9 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright: 2009 Greg Kroah-Hartman <greg@kroah.com>
# 2009 Randy Dunlap <rdunlap@xenotime.net>
# 2009 Frans Pop <elendil@planet.nl>
#
# This software may be used and distributed according to the terms of
# the GNU General Public License (GPL), version 2, or at your option
# any later version.
print_string() {
file=$1

View File

@ -1,25 +1,10 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* usb-spec.h - Data taken from the USB spec
*
* Copyright (C) 2013 Tom Gundersen <teg@jklm.no>
*
* 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.
*
* USB specification data
*
* Copyright (C) 2013 Tom Gundersen <teg@jklm.no>
*/
/*****************************************************************************/
#ifndef _USB_SPEC_H
#define _USB_SPEC_H

View File

@ -1,24 +1,10 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* usbmisc.c -- Misc USB routines
*
* Copyright (C) 2003 Aurelien Jarno (aurelien@aurel32.net)
*
* 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.
*
* Misc USB routines
*
* Copyright (C) 2003 Aurelien Jarno (aurelien@aurel32.net)
*/
/*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

View File

@ -1,23 +1,10 @@
/*****************************************************************************/
// SPDX-License-Identifier: GPL-2.0+
/*
* usbmisc.h -- Misc USB routines
*
* Copyright (C) 2003 Aurelien Jarno (aurelien@aurel32.net)
*
* 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.
* Misc USB routines
*
* Copyright (C) 2003 Aurelien Jarno (aurelien@aurel32.net)
*/
/*****************************************************************************/
#ifndef _USBMISC_H
#define _USBMISC_H