Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16692
b: refs/heads/master
c: 604f28e
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Riffard authored and Greg Kroah-Hartman committed Jan 6, 2006
1 parent c7f4629 commit d526f2d
Show file tree
Hide file tree
Showing 45 changed files with 192 additions and 112 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a33ca23231a37e28d15da9546b1f3e83dc48284b
refs/heads/master: 604f28e2b8d34cbaf08f0351374645f161335a82
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/adv7170.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,10 @@ adv7170_detach_client (struct i2c_client *client)
/* ----------------------------------------------------------------------- */

static struct i2c_driver i2c_driver_adv7170 = {
.owner = THIS_MODULE,
.name = "adv7170", /* name */
.driver = {
.owner = THIS_MODULE,
.name = "adv7170", /* name */
},

.id = I2C_DRIVERID_ADV7170,

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/adv7175.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,10 @@ adv7175_detach_client (struct i2c_client *client)
/* ----------------------------------------------------------------------- */

static struct i2c_driver i2c_driver_adv7175 = {
.owner = THIS_MODULE,
.name = "adv7175", /* name */
.driver = {
.owner = THIS_MODULE,
.name = "adv7175", /* name */
},

.id = I2C_DRIVERID_ADV7175,

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/bt819.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,10 @@ bt819_detach_client (struct i2c_client *client)
/* ----------------------------------------------------------------------- */

static struct i2c_driver i2c_driver_bt819 = {
.owner = THIS_MODULE,
.name = "bt819",
.driver = {
.owner = THIS_MODULE,
.name = "bt819",
},

.id = I2C_DRIVERID_BT819,

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/bt832.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ bt832_command(struct i2c_client *client, unsigned int cmd, void *arg)
/* ----------------------------------------------------------------------- */

static struct i2c_driver driver = {
.owner = THIS_MODULE,
.name = "i2c bt832 driver",
.driver = {
.owner = THIS_MODULE,
.name = "i2c bt832 driver",
},
.id = -1, /* FIXME */
.attach_adapter = bt832_probe,
.detach_client = bt832_detach,
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/bt856.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,10 @@ bt856_detach_client (struct i2c_client *client)
/* ----------------------------------------------------------------------- */

static struct i2c_driver i2c_driver_bt856 = {
.owner = THIS_MODULE,
.name = "bt856",
.driver = {
.owner = THIS_MODULE,
.name = "bt856",
},

.id = I2C_DRIVERID_BT856,

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/bttv-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ static int attach_inform(struct i2c_client *client)

if (bttv_debug)
printk(KERN_DEBUG "bttv%d: %s i2c attach [addr=0x%x,client=%s]\n",
btv->c.nr,client->driver->name,client->addr,
btv->c.nr, client->driver->driver.name, client->addr,
client->name);
if (!client->driver->command)
return 0;
Expand Down
13 changes: 8 additions & 5 deletions trunk/drivers/media/video/cs53l32a.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ MODULE_PARM_DESC(debug, "Debugging messages\n\t\t\t0=Off (default), 1=On");
#define cs53l32a_dbg(fmt, arg...) \
do { \
if (debug) \
printk(KERN_INFO "%s debug %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s debug %d-%04x: " fmt, \
client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); \
} while (0)

#define cs53l32a_err(fmt, arg...) do { \
printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->name, \
printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)
#define cs53l32a_info(fmt, arg...) do { \
printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)

static unsigned short normal_i2c[] = { 0x22 >> 1, I2C_CLIENT_END };
Expand Down Expand Up @@ -215,12 +216,14 @@ static int cs53l32a_detach(struct i2c_client *client)

/* i2c implementation */
static struct i2c_driver i2c_driver = {
.name = "cs53l32a",
.driver = {
.owner = THIS_MODULE,
.name = "cs53l32a",
},
.id = I2C_DRIVERID_CS53L32A,
.attach_adapter = cs53l32a_probe,
.detach_client = cs53l32a_detach,
.command = cs53l32a_command,
.owner = THIS_MODULE,
};


Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/cx25840/cx25840-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,14 +843,16 @@ static int cx25840_detach_client(struct i2c_client *client)
/* ----------------------------------------------------------------------- */

static struct i2c_driver i2c_driver_cx25840 = {
.name = "cx25840",
.driver = {
.owner = THIS_MODULE,
.name = "cx25840",
},

.id = I2C_DRIVERID_CX25840,

.attach_adapter = cx25840_attach_adapter,
.detach_client = cx25840_detach_client,
.command = cx25840_command,
.owner = THIS_MODULE,
};


Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/media/video/cx25840/cx25840.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@
extern int cx25840_debug;

#define cx25840_dbg(fmt, arg...) do { if (cx25840_debug) \
printk(KERN_INFO "%s debug %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s debug %d-%04x: " fmt, \
client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)

#define cx25840_err(fmt, arg...) do { \
printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->name, \
printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)

#define cx25840_info(fmt, arg...) do { \
printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)

#define CX25840_CID_CARDTYPE (V4L2_CID_PRIVATE_BASE+0)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/cx88/cx88-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static int attach_inform(struct i2c_client *client)
struct cx88_core *core = i2c_get_adapdata(client->adapter);

dprintk(1, "%s i2c attach [addr=0x%x,client=%s]\n",
client->driver->name, client->addr, client->name);
client->driver->driver.name, client->addr, client->name);
if (!client->driver->command)
return 0;

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/indycam.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,10 @@ static int indycam_command(struct i2c_client *client, unsigned int cmd,
}

static struct i2c_driver i2c_driver_indycam = {
.owner = THIS_MODULE,
.name = "indycam",
.driver = {
.owner = THIS_MODULE,
.name = "indycam",
},
.id = I2C_DRIVERID_INDYCAM,
.attach_adapter = indycam_probe,
.detach_client = indycam_detach,
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/media/video/ir-kbd-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ static int ir_detach(struct i2c_client *client);
static int ir_probe(struct i2c_adapter *adap);

static struct i2c_driver driver = {
.name = "ir remote kbd driver",
.driver = {
.owner = THIS_MODULE,
.name = "ir remote kbd driver",
},
.id = I2C_DRIVERID_INFRARED,
.attach_adapter = ir_probe,
.detach_client = ir_detach,
Expand Down
19 changes: 11 additions & 8 deletions trunk/drivers/media/video/msp3400.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,34 +59,37 @@
#define msp3400_dbg(fmt, arg...) \
do { \
if (debug) \
printk(KERN_INFO "%s debug %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s debug %d-%04x: " fmt, \
client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); \
} while (0)

/* Medium volume debug. */
#define msp3400_dbg_mediumvol(fmt, arg...) \
do { \
if (debug >= 2) \
printk(KERN_INFO "%s debug %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s debug %d-%04x: " fmt, \
client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); \
} while (0)

/* High volume debug. Use with care. */
#define msp3400_dbg_highvol(fmt, arg...) \
do { \
if (debug >= 16) \
printk(KERN_INFO "%s debug %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s debug %d-%04x: " fmt, \
client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); \
} while (0)

#define msp3400_err(fmt, arg...) do { \
printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->name, \
printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)
#define msp3400_warn(fmt, arg...) do { \
printk(KERN_WARNING "%s %d-%04x: " fmt, client->driver->name, \
printk(KERN_WARNING "%s %d-%04x: " fmt, client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)
#define msp3400_info(fmt, arg...) do { \
printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)

#define OPMODE_AUTO -1
Expand Down Expand Up @@ -1561,13 +1564,13 @@ static int msp_resume(struct device * dev);
static void msp_wake_thread(struct i2c_client *client);

static struct i2c_driver driver = {
.owner = THIS_MODULE,
.name = "msp3400",
.id = I2C_DRIVERID_MSP3400,
.attach_adapter = msp_probe,
.detach_client = msp_detach,
.command = msp_command,
.driver = {
.owner = THIS_MODULE,
.name = "i2c msp3400 driver",
.suspend = msp_suspend,
.resume = msp_resume,
},
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/ovcamchip/ovcamchip_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,10 @@ static int ovcamchip_command(struct i2c_client *c, unsigned int cmd, void *arg)
/* ----------------------------------------------------------------------- */

static struct i2c_driver driver = {
.owner = THIS_MODULE,
.name = "ovcamchip",
.driver = {
.owner = THIS_MODULE,
.name = "ovcamchip",
},
.id = I2C_DRIVERID_OVCAMCHIP,
.class = I2C_CLASS_CAM_DIGITAL,
.attach_adapter = ovcamchip_attach,
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/saa5246a.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ static int saa5246a_command(struct i2c_client *device, unsigned int cmd,

static struct i2c_driver i2c_driver_videotext =
{
.owner = THIS_MODULE,
.name = IF_NAME, /* name */
.driver = {
.owner = THIS_MODULE,
.name = IF_NAME, /* name */
},
.id = I2C_DRIVERID_SAA5249, /* in i2c.h */
.attach_adapter = saa5246a_probe,
.detach_client = saa5246a_detach,
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/saa5249.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,10 @@ static int saa5249_command(struct i2c_client *device,

static struct i2c_driver i2c_driver_videotext =
{
.owner = THIS_MODULE,
.name = IF_NAME, /* name */
.driver = {
.owner = THIS_MODULE,
.name = IF_NAME, /* name */
},
.id = I2C_DRIVERID_SAA5249, /* in i2c.h */
.attach_adapter = saa5249_probe,
.detach_client = saa5249_detach,
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/saa6588.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,10 @@ static int saa6588_command(struct i2c_client *client, unsigned int cmd,
/* ----------------------------------------------------------------------- */

static struct i2c_driver driver = {
.owner = THIS_MODULE,
.name = "i2c saa6588 driver",
.driver = {
.owner = THIS_MODULE,
.name = "i2c saa6588 driver",
},
.id = -1, /* FIXME */
.attach_adapter = saa6588_probe,
.detach_client = saa6588_detach,
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/saa7110.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,10 @@ saa7110_detach_client (struct i2c_client *client)
/* ----------------------------------------------------------------------- */

static struct i2c_driver i2c_driver_saa7110 = {
.owner = THIS_MODULE,
.name = "saa7110",
.driver = {
.owner = THIS_MODULE,
.name = "saa7110",
},

.id = I2C_DRIVERID_SAA7110,

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/saa7111.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,10 @@ saa7111_detach_client (struct i2c_client *client)
/* ----------------------------------------------------------------------- */

static struct i2c_driver i2c_driver_saa7111 = {
.owner = THIS_MODULE,
.name = "saa7111",
.driver = {
.owner = THIS_MODULE,
.name = "saa7111",
},

.id = I2C_DRIVERID_SAA7111A,

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/saa7114.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,8 +1203,10 @@ saa7114_detach_client (struct i2c_client *client)
/* ----------------------------------------------------------------------- */

static struct i2c_driver i2c_driver_saa7114 = {
.owner = THIS_MODULE,
.name = "saa7114",
.driver = {
.owner = THIS_MODULE,
.name = "saa7114",
},

.id = I2C_DRIVERID_SAA7114,

Expand Down
13 changes: 8 additions & 5 deletions trunk/drivers/media/video/saa7115.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)");
#define saa7115_dbg(fmt,arg...) \
do { \
if (debug) \
printk(KERN_INFO "%s debug %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s debug %d-%04x: " fmt, \
client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); \
} while (0)

#define saa7115_err(fmt, arg...) do { \
printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->name, \
printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)
#define saa7115_info(fmt, arg...) do { \
printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->name, \
printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->driver.name, \
i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0)

static unsigned short normal_i2c[] = { 0x42 >> 1, 0x40 >> 1, I2C_CLIENT_END };
Expand Down Expand Up @@ -1353,12 +1354,14 @@ static int saa7115_detach(struct i2c_client *client)

/* i2c implementation */
static struct i2c_driver i2c_driver_saa7115 = {
.name = "saa7115",
.driver = {
.owner = THIS_MODULE,
.name = "saa7115",
},
.id = I2C_DRIVERID_SAA711X,
.attach_adapter = saa7115_probe,
.detach_client = saa7115_detach,
.command = saa7115_command,
.owner = THIS_MODULE,
};


Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/saa711x.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,10 @@ saa711x_detach_client (struct i2c_client *client)
/* ----------------------------------------------------------------------- */

static struct i2c_driver i2c_driver_saa711x = {
.owner = THIS_MODULE,
.name = "saa711x",
.driver = {
.owner = THIS_MODULE,
.name = "saa711x",
},

.id = I2C_DRIVERID_SAA711X,

Expand Down
Loading

0 comments on commit d526f2d

Please sign in to comment.