diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-07-27 14:45:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:15 -0400 |
commit | 82ee3e6fa347dcba19e36afb23a01020bc2e77e2 (patch) | |
tree | 5bffda0707ba1fe1a1c1e59029762c9b76b026b3 /drivers | |
parent | 9e00e48626474854bf712372fe6656ef4621af0f (diff) |
[PATCH] drivers/media/video/tveeprom.c: possible cleanups
This patch contains the following possible cleanups:
- make two needlessly global structs static
- #if 0 the EXPORT_SYMBOL'ed but unused function tveeprom_dump
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/tveeprom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/tveeprom.c b/drivers/media/video/tveeprom.c index e8d9440977cb..62b03ef091e0 100644 --- a/drivers/media/video/tveeprom.c +++ b/drivers/media/video/tveeprom.c | |||
@@ -445,6 +445,7 @@ int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len) | |||
445 | } | 445 | } |
446 | EXPORT_SYMBOL(tveeprom_read); | 446 | EXPORT_SYMBOL(tveeprom_read); |
447 | 447 | ||
448 | #if 0 | ||
448 | int tveeprom_dump(unsigned char *eedata, int len) | 449 | int tveeprom_dump(unsigned char *eedata, int len) |
449 | { | 450 | { |
450 | int i; | 451 | int i; |
@@ -460,6 +461,7 @@ int tveeprom_dump(unsigned char *eedata, int len) | |||
460 | return 0; | 461 | return 0; |
461 | } | 462 | } |
462 | EXPORT_SYMBOL(tveeprom_dump); | 463 | EXPORT_SYMBOL(tveeprom_dump); |
464 | #endif /* 0 */ | ||
463 | 465 | ||
464 | /* ----------------------------------------------------------------------- */ | 466 | /* ----------------------------------------------------------------------- */ |
465 | /* needed for ivtv.sf.net at the moment. Should go away in the long */ | 467 | /* needed for ivtv.sf.net at the moment. Should go away in the long */ |
@@ -477,7 +479,7 @@ static unsigned short normal_i2c[] = { | |||
477 | 479 | ||
478 | I2C_CLIENT_INSMOD; | 480 | I2C_CLIENT_INSMOD; |
479 | 481 | ||
480 | struct i2c_driver i2c_driver_tveeprom; | 482 | static struct i2c_driver i2c_driver_tveeprom; |
481 | 483 | ||
482 | static int | 484 | static int |
483 | tveeprom_command(struct i2c_client *client, | 485 | tveeprom_command(struct i2c_client *client, |
@@ -549,7 +551,7 @@ tveeprom_detach_client (struct i2c_client *client) | |||
549 | return 0; | 551 | return 0; |
550 | } | 552 | } |
551 | 553 | ||
552 | struct i2c_driver i2c_driver_tveeprom = { | 554 | static struct i2c_driver i2c_driver_tveeprom = { |
553 | .owner = THIS_MODULE, | 555 | .owner = THIS_MODULE, |
554 | .name = "tveeprom", | 556 | .name = "tveeprom", |
555 | .id = I2C_DRIVERID_TVEEPROM, | 557 | .id = I2C_DRIVERID_TVEEPROM, |