]> git.hungrycats.org Git - linux/commitdiff
[PATCH] i2c: fix up the media drivers due to removing flags paramater of callback...
authorGreg Kroah-Hartman <greg@kroah.com>
Thu, 24 Apr 2003 04:14:04 +0000 (21:14 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 24 Apr 2003 04:14:04 +0000 (21:14 -0700)
12 files changed:
drivers/media/video/msp3400.c
drivers/media/video/saa5249.c
drivers/media/video/saa7111.c
drivers/media/video/tda7432.c
drivers/media/video/tda9840.c
drivers/media/video/tda9875.c
drivers/media/video/tda9887.c
drivers/media/video/tea6415c.c
drivers/media/video/tea6420.c
drivers/media/video/tuner-3036.c
drivers/media/video/tuner.c
drivers/media/video/tvaudio.c

index 91e5f334982d43ee9129b4e01124c9285760cd3d..d81070e1b156bf1c4f3e233c3bc2877c93430bab 100644 (file)
@@ -1208,8 +1208,7 @@ done:
 
 /* ----------------------------------------------------------------------- */
 
-static int msp_attach(struct i2c_adapter *adap, int addr,
-                     unsigned short flags, int kind);
+static int msp_attach(struct i2c_adapter *adap, int addr, int kind);
 static int msp_detach(struct i2c_client *client);
 static int msp_probe(struct i2c_adapter *adap);
 static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg);
@@ -1233,8 +1232,7 @@ static struct i2c_client client_template =
        },
 };
 
-static int msp_attach(struct i2c_adapter *adap, int addr,
-                     unsigned short flags, int kind)
+static int msp_attach(struct i2c_adapter *adap, int addr, int kind)
 {
        DECLARE_MUTEX_LOCKED(sem);
        struct msp3400c *msp;
index 3168419985431a3f6cd84ac8ca864ea05acb5c15..df511ae63a8c4eeaf6dba9eb73a7dc5327b25396 100644 (file)
@@ -149,7 +149,7 @@ static struct i2c_client_address_data addr_data = {
 
 static struct i2c_client client_template;
 
-static int saa5249_attach(struct i2c_adapter *adap, int addr, unsigned short flags, int kind)          
+static int saa5249_attach(struct i2c_adapter *adap, int addr, int kind)
 {
        int pgbuf;
        int err;
index 9427c6dfea6261c7b8a6755df9a13b4ec1d98bf4..d27b45cc06b583e7b279075d315ade99ef1d0e64 100644 (file)
@@ -66,7 +66,7 @@ static struct i2c_client client_template;
 
 /* ----------------------------------------------------------------------- */
 
-static int saa7111_attach(struct i2c_adapter *adap, int addr, unsigned short flags, int kind)
+static int saa7111_attach(struct i2c_adapter *adap, int addr, int kind)
 {
        int i;
        struct saa7111 *decoder;
index 51658f317e066c5c2b37549536c7838e1c593e50..eaf5f5c8eef20f1abc4bb16c05e888b3f5bab0b3 100644 (file)
@@ -312,8 +312,7 @@ static void do_tda7432_init(struct i2c_client *client)
  * i2c interface functions *
  * *********************** */
 
-static int tda7432_attach(struct i2c_adapter *adap, int addr,
-                         unsigned short flags, int kind)
+static int tda7432_attach(struct i2c_adapter *adap, int addr, int kind)
 {
        struct tda7432 *t;
        struct i2c_client *client;
index 39d88201ec18e4744be22a764d20dd46a2c99419..275fe5f1d849dc05bf7b5c973d8c6907820bd6e6 100644 (file)
@@ -178,7 +178,7 @@ static int tda9840_command(struct i2c_client *client, unsigned int cmd, void* ar
        return 0;
 }
 
-static int tda9840_detect(struct i2c_adapter *adapter, int address, unsigned short flags, int kind)
+static int tda9840_detect(struct i2c_adapter *adapter, int address, int kind)
 {
        struct  i2c_client *client;
        int result = 0;
index 70a25e8c14a6fea935cccdab14b12f7a55a4fb8c..0e97185a9b6850d6efef8252d8d5200f7812564b 100644 (file)
@@ -240,8 +240,7 @@ static int tda9875_checkit(struct i2c_adapter *adap, int addr)
        return(0);
 }
 
-static int tda9875_attach(struct i2c_adapter *adap, int addr,
-                         unsigned short flags, int kind)
+static int tda9875_attach(struct i2c_adapter *adap, int addr, int kind)
 {
        struct tda9875 *t;
        struct i2c_client *client;
index 6b49ee1f18863c24fa22de221851867ed418a46c..a674ff9f15c5b711de5e8bfc2b05744994c215ec 100644 (file)
@@ -345,8 +345,7 @@ static int tda9887_configure(struct tda9887 *t)
 
 /* ---------------------------------------------------------------------- */
 
-static int tda9887_attach(struct i2c_adapter *adap, int addr,
-                         unsigned short flags, int kind)
+static int tda9887_attach(struct i2c_adapter *adap, int addr, int kind)
 {
        struct tda9887 *t;
 
index 71ce11a07f9734c7d7e843f787bb9aed78d9a496..9fa7c34b54b09350bd0edcedcccad614170b3229 100644 (file)
@@ -55,7 +55,7 @@ static struct i2c_driver driver;
 static int tea6415c_id = 0;
 
 /* this function is called by i2c_probe */
-static int tea6415c_detect(struct i2c_adapter *adapter, int address, unsigned short flags, int kind)
+static int tea6415c_detect(struct i2c_adapter *adapter, int address, int kind)
 {
        struct  i2c_client *client = 0;
        int err = 0;
index b55e8b26c21d5731bbc17f375d1ceeac257f0bb8..74ea97c1f2d90704843d5d6f9965753025c6cedb 100644 (file)
@@ -95,7 +95,7 @@ static int tea6420_switch(struct i2c_client *client, int i, int o, int g)
 }
 
 /* this function is called by i2c_probe */
-static int tea6420_detect(struct i2c_adapter *adapter, int address, unsigned short flags, int kind)
+static int tea6420_detect(struct i2c_adapter *adapter, int address, int kind)
 {
        struct  i2c_client *client;
        int err = 0, i = 0;
index 5b683c4afe0b728bdadcaf1e2abe6f537861bda8..61513bb0fae9b439f6122f5688605868c51d092d 100644 (file)
@@ -114,8 +114,7 @@ set_tv_freq(struct i2c_client *c, int freq)
 /* ---------------------------------------------------------------------- */
 
 static int 
-tuner_attach(struct i2c_adapter *adap, int addr,
-            unsigned short flags, int kind)
+tuner_attach(struct i2c_adapter *adap, int addr, int kind)
 {
        static unsigned char buffer[] = { 0x29, 0x32, 0x2a, 0, 0x2b, 0 };
 
index 54f9cc826218c7dd85c375c971c8a43997933830..93de9a356f219c5a09ee00036e2c22c55139ca51 100644 (file)
@@ -776,8 +776,7 @@ static void set_radio_freq(struct i2c_client *c, int freq)
 
 /* ---------------------------------------------------------------------- */
 
-static int tuner_attach(struct i2c_adapter *adap, int addr,
-                       unsigned short flags, int kind)
+static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
 {
        struct tuner *t;
        struct i2c_client *client;
index 1cb729c6ea06c3bb8893d151ecefa5f5cfbc411b..d546d6d72a148a6817b6fc47bee28e72c1777a42 100644 (file)
@@ -1326,8 +1326,7 @@ static struct CHIPDESC chiplist[] = {
 /* ---------------------------------------------------------------------- */
 /* i2c registration                                                       */
 
-static int chip_attach(struct i2c_adapter *adap, int addr,
-                      unsigned short flags, int kind)
+static int chip_attach(struct i2c_adapter *adap, int addr, int kind)
 {
        struct CHIPSTATE *chip;
        struct CHIPDESC  *desc;