]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
media: get rid of i2c-addr.h
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 5 Oct 2017 13:56:39 +0000 (09:56 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 16:52:24 +0000 (11:52 -0500)
In the past, the same I2C address were used on multiple places.
After I2C rebinding changes, this is no longer needed. So, we
can just get rid of this header, placing the I2C address where
they belong, e. g. either at bttv driver or at tvtuner.

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/tda7432.c
drivers/media/i2c/tvaudio.c
drivers/media/pci/bt8xx/bttv-cards.c
drivers/media/pci/bt8xx/bttv.h
drivers/media/usb/em28xx/em28xx-cards.c
drivers/media/usb/tm6000/tm6000-cards.c
include/media/i2c-addr.h [deleted file]
include/media/i2c/tvaudio.h

index d87168adee45687a719bc7eff34f256eb28b1cca..1c5c61d829d61024f61e95718671e1d2488daa80 100644 (file)
@@ -36,7 +36,6 @@
 #include <media/v4l2-device.h>
 #include <media/v4l2-ioctl.h>
 #include <media/v4l2-ctrls.h>
-#include <media/i2c-addr.h>
 
 #ifndef VIDEO_AUDIO_BALANCE
 # define VIDEO_AUDIO_BALANCE 32
index 16a1e08ce06ca6b0331f3e8228d9c45d28633e14..e6edda524856fca2f6ea4cca5e0899523514dd04 100644 (file)
@@ -40,8 +40,6 @@
 #include <media/v4l2-device.h>
 #include <media/v4l2-ctrls.h>
 
-#include <media/i2c-addr.h>
-
 /* ---------------------------------------------------------------------- */
 /* insmod args                                                            */
 
index 5cc42b426715841ef2cf7c3d94972106e6e1ff72..7dcf509e66d9e8cf7e542868e2aa89e262b293fb 100644 (file)
@@ -141,6 +141,13 @@ MODULE_PARM_DESC(audiodev, "specify audio device:\n"
 MODULE_PARM_DESC(saa6588, "if 1, then load the saa6588 RDS module, default (0) is to use the card definition.");
 MODULE_PARM_DESC(no_overlay, "allow override overlay default (0 disables, 1 enables) [some VIA/SIS chipsets are known to have problem with overlay]");
 
+
+/* I2C addresses list */
+#define I2C_ADDR_TDA7432       0x8a
+#define I2C_ADDR_MSP3400       0x80
+#define I2C_ADDR_MSP3400_ALT   0x88
+
+
 /* ----------------------------------------------------------------------- */
 /* list of card IDs for bt878+ cards                                       */
 
index eb67e362acf777a7974519c249212b811b0a3e0b..cc555a4d4462c1491039f1b1f5b338c45d66c01b 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/videodev2.h>
 #include <linux/i2c.h>
 #include <media/v4l2-device.h>
-#include <media/i2c-addr.h>
 #include <media/tuner.h>
 
 /* ---------------------------------------------------------- */
index 4c57fd7929cb4c71786956650ebd7ea869401219..34e16f6ab4ac1d04ec28c9f5cacbcb4006e045a1 100644 (file)
@@ -36,7 +36,6 @@
 #include <media/i2c/saa7115.h>
 #include <dt-bindings/media/tvp5150.h>
 #include <media/i2c/tvaudio.h>
-#include <media/i2c-addr.h>
 #include <media/tveeprom.h>
 #include <media/v4l2-common.h>
 #include <sound/ac97_codec.h>
index 8d2aa63f9b9473279ea99ce992dde8e4b2798eb4..4d5f4cc4887e6a0a79707c20af0f2b5eb7459382 100644 (file)
@@ -13,7 +13,6 @@
 #include <media/v4l2-common.h>
 #include <media/tuner.h>
 #include <media/i2c/tvaudio.h>
-#include <media/i2c-addr.h>
 #include <media/rc-map.h>
 
 #include "tm6000.h"
diff --git a/include/media/i2c-addr.h b/include/media/i2c-addr.h
deleted file mode 100644 (file)
index ce4298c..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- *     V4L I2C address list
- *
- *
- *     Copyright (C) 2006 Mauro Carvalho Chehab <mchehab@infradead.org>
- *     Based on a previous mapping by
- *     Ralph Metzler (rjkm@thp.uni-koeln.de)
- *     Gerd Knorr <kraxel@goldbach.in-berlin.de>
- *
- */
-
-/* bttv address list */
-#define I2C_ADDR_TDA7432       0x8a
-#define I2C_ADDR_TDA8425       0x82
-#define I2C_ADDR_TDA9840       0x84
-#define I2C_ADDR_TDA9874       0xb0 /* also used by 9875 */
-#define I2C_ADDR_TDA9875       0xb0
-#define I2C_ADDR_MSP3400       0x80
-#define I2C_ADDR_MSP3400_ALT   0x88
-#define I2C_ADDR_TEA6300       0x80 /* also used by 6320 */
-
-/*
- * i2c bus addresses for the chips supported by tvaudio.c
- */
-
-#define I2C_ADDR_TDA8425       0x82
-#define I2C_ADDR_TDA9840       0x84 /* also used by TA8874Z */
-#define I2C_ADDR_TDA985x_L     0xb4 /* also used by 9873 */
-#define I2C_ADDR_TDA985x_H     0xb6
-#define I2C_ADDR_TDA9874       0xb0 /* also used by 9875 */
-
-#define I2C_ADDR_TEA6300       0x80 /* also used by 6320 */
-#define I2C_ADDR_TEA6420       0x98
-
-#define I2C_ADDR_PIC16C54      0x96 /* PV951 */
index 1ac8184693f89a6fdd358cb027263d00f545782c..f13e1a38636458684c4e0e506995cbc1fd1fe055 100644 (file)
 #ifndef _TVAUDIO_H
 #define _TVAUDIO_H
 
-#include <media/i2c-addr.h>
+/*
+ * i2c bus addresses for the chips supported by tvaudio.c
+ */
+
+#define I2C_ADDR_TDA8425       0x82
+#define I2C_ADDR_TDA9840       0x84
+#define I2C_ADDR_TDA9874       0xb0 /* also used by 9875 */
+#define I2C_ADDR_TDA9875       0xb0
+#define I2C_ADDR_TDA8425       0x82
+#define I2C_ADDR_TDA9840       0x84 /* also used by TA8874Z */
+#define I2C_ADDR_TDA985x_L     0xb4 /* also used by 9873 */
+#define I2C_ADDR_TDA985x_H     0xb6
+#define I2C_ADDR_TDA9874       0xb0 /* also used by 9875 */
+#define I2C_ADDR_TEA6300       0x80 /* also used by 6320 */
+#define I2C_ADDR_TEA6420       0x98
+#define I2C_ADDR_PIC16C54      0x96 /* PV951 */
 
 /* The tvaudio module accepts the following inputs: */
 #define TVAUDIO_INPUT_TUNER  0