2003-02-11 18:17:09

by Frank Davis

[permalink] [raw]
Subject: [PATCH] 2.5.60 : drivers/media/video/saa5249.c

Hello all,
The following addresses bugzilla bug # 340. Please review.

Regards,
Frank

--- linux/drivers/media/video/saa5249.c.old 2003-02-10 15:33:58.000000000 -0500
+++ linux/drivers/media/video/saa5249.c 2003-02-11 13:34:07.000000000 -0500
@@ -254,21 +254,19 @@

static struct i2c_driver i2c_driver_videotext =
{
- IF_NAME, /* name */
- I2C_DRIVERID_SAA5249, /* in i2c.h */
- I2C_DF_NOTIFY,
- saa5249_probe,
- saa5249_detach,
- saa5249_command
+ .owner = THIS_MODULE,
+ .name = IF_NAME, /* name */
+ .id = I2C_DRIVERID_SAA5249, /* in i2c.h */
+ .flags = I2C_DF_NOTIFY,
+ .attach_adapter = saa5249_probe,
+ .detach_client = saa5249_detach,
+ .command = saa5249_command
};

static struct i2c_client client_template = {
- "(unset)",
- -1,
- 0,
- 0,
- NULL,
- &i2c_driver_videotext
+ .name = "(unset)",
+ .id = -1,
+ .driver = &i2c_driver_videotext
};

/*