Commit 0c20e8ca authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: tuners: add SPDX identifiers to the code I wrote

As we're now using SPDX identifiers, on the several
media drivers I wrote, add the proper SPDX, identifying
the license I meant.

As we're now using the short license, it doesn't make sense to
keep the original license text.

Also, fix MODULE_LICENSE to properly identify GPL v2.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Reviewed-by: default avatarPhilippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 20835280
/* // SPDX-License-Identifier: GPL-2.0
* Rafael Micro R820T driver // Rafael Micro R820T driver
* //
* Copyright (C) 2013 Mauro Carvalho Chehab // Copyright (C) 2013 Mauro Carvalho Chehab
* //
* This driver was written from scratch, based on an existing driver // This driver was written from scratch, based on an existing driver
* that it is part of rtl-sdr git tree, released under GPLv2: // that it is part of rtl-sdr git tree, released under GPLv2:
* https://groups.google.com/forum/#!topic/ultra-cheap-sdr/Y3rBEOFtHug // https://groups.google.com/forum/#!topic/ultra-cheap-sdr/Y3rBEOFtHug
* https://github.com/n1gp/gr-baz // https://github.com/n1gp/gr-baz
* //
* From what I understood from the threads, the original driver was converted // From what I understood from the threads, the original driver was converted
* to userspace from a Realtek tree. I couldn't find the original tree. // to userspace from a Realtek tree. I couldn't find the original tree.
* However, the original driver look awkward on my eyes. So, I decided to // However, the original driver look awkward on my eyes. So, I decided to
* write a new version from it from the scratch, while trying to reproduce // write a new version from it from the scratch, while trying to reproduce
* everything found there. // everything found there.
* //
* TODO: // TODO:
* After locking, the original driver seems to have some routines to // After locking, the original driver seems to have some routines to
* improve reception. This was not implemented here yet. // improve reception. This was not implemented here yet.
* //
* RF Gain set/get is not implemented. // RF Gain set/get is not implemented.
*
* 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.
*
*/
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/mutex.h> #include <linux/mutex.h>
...@@ -2388,4 +2376,4 @@ EXPORT_SYMBOL_GPL(r820t_attach); ...@@ -2388,4 +2376,4 @@ EXPORT_SYMBOL_GPL(r820t_attach);
MODULE_DESCRIPTION("Rafael Micro r820t silicon tuner driver"); MODULE_DESCRIPTION("Rafael Micro r820t silicon tuner driver");
MODULE_AUTHOR("Mauro Carvalho Chehab"); MODULE_AUTHOR("Mauro Carvalho Chehab");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL v2");
/* // SPDX-License-Identifier: GPL-2.0
* For Philips TEA5761 FM Chip // For Philips TEA5761 FM Chip
* I2C address is allways 0x20 (0x10 at 7-bit mode). // I2C address is always 0x20 (0x10 at 7-bit mode).
* //
* Copyright (c) 2005-2007 Mauro Carvalho Chehab (mchehab@infradead.org) // Copyright (c) 2005-2007 Mauro Carvalho Chehab (mchehab@infradead.org)
* This code is placed under the terms of the GNUv2 General Public License
*
*/
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/slab.h> #include <linux/slab.h>
...@@ -341,4 +338,4 @@ EXPORT_SYMBOL_GPL(tea5761_autodetection); ...@@ -341,4 +338,4 @@ EXPORT_SYMBOL_GPL(tea5761_autodetection);
MODULE_DESCRIPTION("Philips TEA5761 FM tuner driver"); MODULE_DESCRIPTION("Philips TEA5761 FM tuner driver");
MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@infradead.org>"); MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@infradead.org>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL v2");
/* // SPDX-License-Identifier: GPL-2.0
* For Philips TEA5767 FM Chip used on some TV Cards like Prolink Pixelview // For Philips TEA5767 FM Chip used on some TV Cards like Prolink Pixelview
* I2C address is allways 0xC0. // I2C address is always 0xC0.
* //
* // Copyright (c) 2005 Mauro Carvalho Chehab (mchehab@infradead.org)
* Copyright (c) 2005 Mauro Carvalho Chehab (mchehab@infradead.org) //
* This code is placed under the terms of the GNU General Public License // tea5767 autodetection thanks to Torsten Seeboth and Atsushi Nakagawa
* // from their contributions on DScaler.
* tea5767 autodetection thanks to Torsten Seeboth and Atsushi Nakagawa
* from their contributions on DScaler.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
...@@ -473,4 +470,4 @@ EXPORT_SYMBOL_GPL(tea5767_autodetection); ...@@ -473,4 +470,4 @@ EXPORT_SYMBOL_GPL(tea5767_autodetection);
MODULE_DESCRIPTION("Philips TEA5767 FM tuner driver"); MODULE_DESCRIPTION("Philips TEA5767 FM tuner driver");
MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@infradead.org>"); MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@infradead.org>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL v2");
/* tuner-xc2028_types /*
* SPDX-License-Identifier: GPL-2.0
* tuner-xc2028_types
* *
* This file includes internal tipes to be used inside tuner-xc2028. * This file includes internal tipes to be used inside tuner-xc2028.
* Shouldn't be included outside tuner-xc2028 * Shouldn't be included outside tuner-xc2028
* *
* Copyright (c) 2007-2008 Mauro Carvalho Chehab (mchehab@infradead.org) * Copyright (c) 2007-2008 Mauro Carvalho Chehab (mchehab@infradead.org)
* This code is placed under the terms of the GNU General Public License v2
*/ */
/* xc3028 firmware types */ /* xc3028 firmware types */
......
/* tuner-xc2028 // SPDX-License-Identifier: GPL-2.0
* // tuner-xc2028
* Copyright (c) 2007-2008 Mauro Carvalho Chehab (mchehab@infradead.org) //
* // Copyright (c) 2007-2008 Mauro Carvalho Chehab (mchehab@infradead.org)
* Copyright (c) 2007 Michel Ludwig (michel.ludwig@gmail.com) //
* - frontend interface // Copyright (c) 2007 Michel Ludwig (michel.ludwig@gmail.com)
* // - frontend interface
* This code is placed under the terms of the GNU General Public License v2
*/
#include <linux/i2c.h> #include <linux/i2c.h>
#include <asm/div64.h> #include <asm/div64.h>
...@@ -1521,6 +1519,6 @@ EXPORT_SYMBOL(xc2028_attach); ...@@ -1521,6 +1519,6 @@ EXPORT_SYMBOL(xc2028_attach);
MODULE_DESCRIPTION("Xceive xc2028/xc3028 tuner driver"); MODULE_DESCRIPTION("Xceive xc2028/xc3028 tuner driver");
MODULE_AUTHOR("Michel Ludwig <michel.ludwig@gmail.com>"); MODULE_AUTHOR("Michel Ludwig <michel.ludwig@gmail.com>");
MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@infradead.org>"); MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@infradead.org>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL v2");
MODULE_FIRMWARE(XC2028_DEFAULT_FIRMWARE); MODULE_FIRMWARE(XC2028_DEFAULT_FIRMWARE);
MODULE_FIRMWARE(XC3028L_DEFAULT_FIRMWARE); MODULE_FIRMWARE(XC3028L_DEFAULT_FIRMWARE);
/* tuner-xc2028 /*
* SPDX-License-Identifier: GPL-2.0
* tuner-xc2028
* *
* Copyright (c) 2007-2008 Mauro Carvalho Chehab (mchehab@infradead.org) * Copyright (c) 2007-2008 Mauro Carvalho Chehab (mchehab@infradead.org)
* This code is placed under the terms of the GNU General Public License v2
*/ */
#ifndef __TUNER_XC2028_H__ #ifndef __TUNER_XC2028_H__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment