summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-11-20 02:13:48 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-11-20 02:13:48 +0000
commit6be6cf626692423f838ec37dd3e29de60e0b3032 (patch)
treee15b6538f6cc45bdd024f9037353b4082a9bae96
parentafd0d0eecb3280f467122c2f4592be0e9bd366a2 (diff)
downloadmediapointer-dvb-s2-6be6cf626692423f838ec37dd3e29de60e0b3032.tar.gz
mediapointer-dvb-s2-6be6cf626692423f838ec37dd3e29de60e0b3032.tar.bz2
some funcions now static and I2C hw code for IR
CC: Jean Delvare <khali@linux-fr.org> CC: LM Sensors <lm-sensors@lm-sensors.org> CC: Greg KH <gregkh@suse.de> - Some funcions are now declared as static - Added a I2C code for InfraRed. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
-rw-r--r--linux/drivers/media/video/cx25840/cx25840-core.c4
-rw-r--r--linux/drivers/media/video/ir-kbd-i2c.c4
-rw-r--r--linux/drivers/media/video/saa7127.c6
-rw-r--r--linux/include/linux/i2c-id.h1
-rw-r--r--v4l/ChangeLog12
5 files changed, 20 insertions, 7 deletions
diff --git a/linux/drivers/media/video/cx25840/cx25840-core.c b/linux/drivers/media/video/cx25840/cx25840-core.c
index e2538242e..764669a99 100644
--- a/linux/drivers/media/video/cx25840/cx25840-core.c
+++ b/linux/drivers/media/video/cx25840/cx25840-core.c
@@ -723,7 +723,7 @@ static int cx25840_command(struct i2c_client *client, unsigned int cmd,
/* ----------------------------------------------------------------------- */
-struct i2c_driver i2c_driver_cx25840;
+static struct i2c_driver i2c_driver_cx25840;
static int cx25840_detect_client(struct i2c_adapter *adapter, int address,
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
@@ -829,7 +829,7 @@ static int cx25840_detach_client(struct i2c_client *client)
/* ----------------------------------------------------------------------- */
-struct i2c_driver i2c_driver_cx25840 = {
+static struct i2c_driver i2c_driver_cx25840 = {
.name = "cx25840",
.id = I2C_DRIVERID_CX25840,
diff --git a/linux/drivers/media/video/ir-kbd-i2c.c b/linux/drivers/media/video/ir-kbd-i2c.c
index 6cb51f6f6..ce7655dc0 100644
--- a/linux/drivers/media/video/ir-kbd-i2c.c
+++ b/linux/drivers/media/video/ir-kbd-i2c.c
@@ -1,5 +1,5 @@
/*
- * $Id: ir-kbd-i2c.c,v 1.27 2005/11/08 16:51:29 nsh Exp $
+ * $Id: ir-kbd-i2c.c,v 1.28 2005/11/20 02:13:48 mchehab Exp $
*
* keyboard input driver for i2c IR remote controls
*
@@ -281,7 +281,7 @@ static int ir_probe(struct i2c_adapter *adap);
static struct i2c_driver driver = {
.name = "ir remote kbd driver",
- .id = I2C_DRIVERID_EXP3, /* FIXME */
+ .id = I2C_DRIVERID_I2C_IR,
.flags = I2C_DF_NOTIFY,
.attach_adapter = ir_probe,
.detach_client = ir_detach,
diff --git a/linux/drivers/media/video/saa7127.c b/linux/drivers/media/video/saa7127.c
index 7987d6030..8f2192ae2 100644
--- a/linux/drivers/media/video/saa7127.c
+++ b/linux/drivers/media/video/saa7127.c
@@ -233,7 +233,7 @@ static const struct i2c_reg_value saa7127_init_config_60hz[] = {
};
#define SAA7127_50HZ_DAC_CONTROL 0x02
-struct i2c_reg_value saa7127_init_config_50hz[] = {
+static struct i2c_reg_value saa7127_init_config_50hz[] = {
{ SAA7127_REG_BURST_START, 0x21 },
/* BURST_END is also used as a chip ID in saa7127_detect_client */
{ SAA7127_REG_BURST_END, 0x1d },
@@ -706,7 +706,7 @@ static int saa7127_command(struct i2c_client *client,
/* ----------------------------------------------------------------------- */
-struct i2c_driver i2c_driver_saa7127;
+static struct i2c_driver i2c_driver_saa7127;
/* ----------------------------------------------------------------------- */
@@ -839,7 +839,7 @@ static int saa7127_detach(struct i2c_client *client)
/* ----------------------------------------------------------------------- */
-struct i2c_driver i2c_driver_saa7127 = {
+static struct i2c_driver i2c_driver_saa7127 = {
.name = "saa7127",
.id = I2C_DRIVERID_SAA7127,
.flags = I2C_DF_NOTIFY,
diff --git a/linux/include/linux/i2c-id.h b/linux/include/linux/i2c-id.h
index 1543daaa9..ef3b5632e 100644
--- a/linux/include/linux/i2c-id.h
+++ b/linux/include/linux/i2c-id.h
@@ -108,6 +108,7 @@
#define I2C_DRIVERID_SAA7127 72 /* saa7124 video encoder */
#define I2C_DRIVERID_SAA711X 73 /* saa711x video encoders */
#define I2C_DRIVERID_AKITAIOEXP 74 /* IO Expander on Sharp SL-C1000 */
+#define I2C_DRIVERID_I2C_IR 75 /* I2C InfraRed on Video boards */
#define I2C_DRIVERID_EXP0 0xF0 /* experimental use id's */
#define I2C_DRIVERID_EXP1 0xF1
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index ba7f387e4..a1f33b37d 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,15 @@
+2005-11-20 02:09 mchehab
+
+ * ../linux/drivers/media/video/cx25840/cx25840-core.c:
+ * ../linux/drivers/media/video/saa7127.c:
+ - Some funcions are now declared as static
+
+ * ../linux/drivers/media/video/ir-kbd-i2c.c:
+ * ../linux/include/linux/i2c-id.h:
+ - Added a I2C code for InfraRed.
+
+ Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
+
2005-11-18 20:15 mchehab
* ../linux/drivers/media/video/cx88/cx88-core.c: