]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Make drivers/media/video/saa7110.c compile
authorAndrew Morton <akpm@digeo.com>
Wed, 12 Feb 2003 05:08:00 +0000 (21:08 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 12 Feb 2003 05:08:00 +0000 (21:08 -0800)
Patch from: Frank Davis <fdavis@si.rr.com>

The following patch addresses bugzilla bug # 341.

drivers/media/video/saa7110.c

index 995a4eaf94f26b566970212204f3d30a3ffd36fd..9c4922926a400f6d850eab8538c22401660d0ea2 100644 (file)
@@ -381,20 +381,18 @@ int saa7110_command(struct i2c_client *client, unsigned int cmd, void *arg)
 
 static struct i2c_driver i2c_driver_saa7110 =
 {
-       IF_NAME,                        /* name */
-       I2C_DRIVERID_SAA7110,   /* in i2c.h */
-       I2C_DF_NOTIFY,  /* Addr range */
-       saa7110_probe,
-       saa7110_detach,
-       saa7110_command
+       .owner          = THIS_MODULE,
+       .name           = IF_NAME,                      /* name */
+       .id             = I2C_DRIVERID_SAA7110, /* in i2c.h */
+       .flags          = I2C_DF_NOTIFY,        /* Addr range */
+       .attach_adapter = saa7110_probe,
+       .detach_client  = saa7110_detach,
+       .command        = saa7110_command
 };
 static struct i2c_client client_template = {
-       "saa7110_client",
-       -1,
-       0,
-       0,
-       NULL,
-       &i2c_driver_saa7110
+       .name           = "saa7110_client",
+       .id             = -1,
+       .driver         = &i2c_driver_saa7110
 };
 
 static int saa7110_init(void)