Commit bb8d67e5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Christoph Hellwig

[PATCH] i2c: fix up the media drivers due to removing flags paramater of callback function

parent 24cd42ee
...@@ -1208,8 +1208,7 @@ static int msp3410d_thread(void *data) ...@@ -1208,8 +1208,7 @@ static int msp3410d_thread(void *data)
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
static int msp_attach(struct i2c_adapter *adap, int addr, static int msp_attach(struct i2c_adapter *adap, int addr, int kind);
unsigned short flags, int kind);
static int msp_detach(struct i2c_client *client); static int msp_detach(struct i2c_client *client);
static int msp_probe(struct i2c_adapter *adap); static int msp_probe(struct i2c_adapter *adap);
static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg); static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg);
...@@ -1233,8 +1232,7 @@ static struct i2c_client client_template = ...@@ -1233,8 +1232,7 @@ static struct i2c_client client_template =
}, },
}; };
static int msp_attach(struct i2c_adapter *adap, int addr, static int msp_attach(struct i2c_adapter *adap, int addr, int kind)
unsigned short flags, int kind)
{ {
DECLARE_MUTEX_LOCKED(sem); DECLARE_MUTEX_LOCKED(sem);
struct msp3400c *msp; struct msp3400c *msp;
......
...@@ -149,7 +149,7 @@ static struct i2c_client_address_data addr_data = { ...@@ -149,7 +149,7 @@ static struct i2c_client_address_data addr_data = {
static struct i2c_client client_template; 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 pgbuf;
int err; int err;
......
...@@ -66,7 +66,7 @@ static struct i2c_client client_template; ...@@ -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; int i;
struct saa7111 *decoder; struct saa7111 *decoder;
......
...@@ -312,8 +312,7 @@ static void do_tda7432_init(struct i2c_client *client) ...@@ -312,8 +312,7 @@ static void do_tda7432_init(struct i2c_client *client)
* i2c interface functions * * i2c interface functions *
* *********************** */ * *********************** */
static int tda7432_attach(struct i2c_adapter *adap, int addr, static int tda7432_attach(struct i2c_adapter *adap, int addr, int kind)
unsigned short flags, int kind)
{ {
struct tda7432 *t; struct tda7432 *t;
struct i2c_client *client; struct i2c_client *client;
......
...@@ -178,7 +178,7 @@ static int tda9840_command(struct i2c_client *client, unsigned int cmd, void* ar ...@@ -178,7 +178,7 @@ static int tda9840_command(struct i2c_client *client, unsigned int cmd, void* ar
return 0; 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; struct i2c_client *client;
int result = 0; int result = 0;
......
...@@ -240,8 +240,7 @@ static int tda9875_checkit(struct i2c_adapter *adap, int addr) ...@@ -240,8 +240,7 @@ static int tda9875_checkit(struct i2c_adapter *adap, int addr)
return(0); return(0);
} }
static int tda9875_attach(struct i2c_adapter *adap, int addr, static int tda9875_attach(struct i2c_adapter *adap, int addr, int kind)
unsigned short flags, int kind)
{ {
struct tda9875 *t; struct tda9875 *t;
struct i2c_client *client; struct i2c_client *client;
......
...@@ -345,8 +345,7 @@ static int tda9887_configure(struct tda9887 *t) ...@@ -345,8 +345,7 @@ static int tda9887_configure(struct tda9887 *t)
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
static int tda9887_attach(struct i2c_adapter *adap, int addr, static int tda9887_attach(struct i2c_adapter *adap, int addr, int kind)
unsigned short flags, int kind)
{ {
struct tda9887 *t; struct tda9887 *t;
......
...@@ -55,7 +55,7 @@ static struct i2c_driver driver; ...@@ -55,7 +55,7 @@ static struct i2c_driver driver;
static int tea6415c_id = 0; static int tea6415c_id = 0;
/* this function is called by i2c_probe */ /* 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; struct i2c_client *client = 0;
int err = 0; int err = 0;
......
...@@ -95,7 +95,7 @@ static int tea6420_switch(struct i2c_client *client, int i, int o, int g) ...@@ -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 */ /* 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; struct i2c_client *client;
int err = 0, i = 0; int err = 0, i = 0;
......
...@@ -114,8 +114,7 @@ set_tv_freq(struct i2c_client *c, int freq) ...@@ -114,8 +114,7 @@ set_tv_freq(struct i2c_client *c, int freq)
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
static int static int
tuner_attach(struct i2c_adapter *adap, int addr, tuner_attach(struct i2c_adapter *adap, int addr, int kind)
unsigned short flags, int kind)
{ {
static unsigned char buffer[] = { 0x29, 0x32, 0x2a, 0, 0x2b, 0 }; static unsigned char buffer[] = { 0x29, 0x32, 0x2a, 0, 0x2b, 0 };
......
...@@ -776,8 +776,7 @@ static void set_radio_freq(struct i2c_client *c, int freq) ...@@ -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, static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
unsigned short flags, int kind)
{ {
struct tuner *t; struct tuner *t;
struct i2c_client *client; struct i2c_client *client;
......
...@@ -1326,8 +1326,7 @@ static struct CHIPDESC chiplist[] = { ...@@ -1326,8 +1326,7 @@ static struct CHIPDESC chiplist[] = {
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
/* i2c registration */ /* i2c registration */
static int chip_attach(struct i2c_adapter *adap, int addr, static int chip_attach(struct i2c_adapter *adap, int addr, int kind)
unsigned short flags, int kind)
{ {
struct CHIPSTATE *chip; struct CHIPSTATE *chip;
struct CHIPDESC *desc; struct CHIPDESC *desc;
......
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