diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-08-15 13:57:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-05 12:14:35 -0400 |
commit | fae91e72b79ba9a21f0ce7551a1fd7e8984c85a6 (patch) | |
tree | 1db62e590a010d7ece7f170aedbcc72c8f126122 /drivers/media/video/ovcamchip | |
parent | 5b5439652af79106b792faf79b2c1e787e143ba0 (diff) |
[PATCH] I2C: Drop I2C_DEVNAME and i2c_clientname
I2C_DEVNAME and i2c_clientname were introduced in 2.5.68 [1] to help
media/video driver authors who wanted their code to be compatible with
both Linux 2.4 and 2.6. The cause of the incompatibility has gone since
[2], so I think we can get rid of them, as they tend to make the code
harder to read and longer to preprocess/compile for no more benefit.
I'd hope nobody seriously attempts to keep media/video driver compatible
across Linux trees anymore, BTW.
[1] http://marc.theaimsgroup.com/?l=linux-kernel&m=104930186524598&w=2
[2] http://www.linuxhq.com/kernel/v2.6/0-test3/include/linux/i2c.h
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/media/video/ovcamchip')
-rw-r--r-- | drivers/media/video/ovcamchip/ovcamchip_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/ovcamchip/ovcamchip_core.c b/drivers/media/video/ovcamchip/ovcamchip_core.c index b98c64ab7c58..2de34ebf0673 100644 --- a/drivers/media/video/ovcamchip/ovcamchip_core.c +++ b/drivers/media/video/ovcamchip/ovcamchip_core.c | |||
@@ -314,7 +314,7 @@ static int ovcamchip_attach(struct i2c_adapter *adap) | |||
314 | } | 314 | } |
315 | memcpy(c, &client_template, sizeof *c); | 315 | memcpy(c, &client_template, sizeof *c); |
316 | c->adapter = adap; | 316 | c->adapter = adap; |
317 | strcpy(i2c_clientname(c), "OV????"); | 317 | strcpy(c->name, "OV????"); |
318 | 318 | ||
319 | ov = kmalloc(sizeof *ov, GFP_KERNEL); | 319 | ov = kmalloc(sizeof *ov, GFP_KERNEL); |
320 | if (!ov) { | 320 | if (!ov) { |
@@ -328,7 +328,7 @@ static int ovcamchip_attach(struct i2c_adapter *adap) | |||
328 | if (rc < 0) | 328 | if (rc < 0) |
329 | goto error; | 329 | goto error; |
330 | 330 | ||
331 | strcpy(i2c_clientname(c), chip_names[ov->subtype]); | 331 | strcpy(c->name, chip_names[ov->subtype]); |
332 | 332 | ||
333 | PDEBUG(1, "Camera chip detection complete"); | 333 | PDEBUG(1, "Camera chip detection complete"); |
334 | 334 | ||
@@ -421,7 +421,7 @@ static struct i2c_driver driver = { | |||
421 | }; | 421 | }; |
422 | 422 | ||
423 | static struct i2c_client client_template = { | 423 | static struct i2c_client client_template = { |
424 | I2C_DEVNAME("(unset)"), | 424 | .name = "(unset)", |
425 | .driver = &driver, | 425 | .driver = &driver, |
426 | }; | 426 | }; |
427 | 427 | ||