diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-12-13 17:04:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-23 20:28:12 -0500 |
commit | a9fb1c7b950bed4afe208c9d67e20f086bb6abbb (patch) | |
tree | 496c2b8b292411a6163dc451b8dab82665a8ab99 /drivers/w1/w1_int.c | |
parent | baf12ae29ab4cc6381e21b2e1a3af75a6a8f7566 (diff) |
[PATCH] w1: misc cleanups
This patch contains the following cleanups:
- make needlessly global code static
- declarations for global code belong into header files
- w1.c: #if 0 the unused struct w1_slave_device
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/w1_int.c')
-rw-r--r-- | drivers/w1/w1_int.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c index c3f67eafc7ec..4724693ad51d 100644 --- a/drivers/w1/w1_int.c +++ b/drivers/w1/w1_int.c | |||
@@ -26,19 +26,10 @@ | |||
26 | #include "w1.h" | 26 | #include "w1.h" |
27 | #include "w1_log.h" | 27 | #include "w1_log.h" |
28 | #include "w1_netlink.h" | 28 | #include "w1_netlink.h" |
29 | #include "w1_int.h" | ||
29 | 30 | ||
30 | static u32 w1_ids = 1; | 31 | static u32 w1_ids = 1; |
31 | 32 | ||
32 | extern struct device_driver w1_master_driver; | ||
33 | extern struct bus_type w1_bus_type; | ||
34 | extern struct device w1_master_device; | ||
35 | extern int w1_max_slave_count; | ||
36 | extern int w1_max_slave_ttl; | ||
37 | extern struct list_head w1_masters; | ||
38 | extern spinlock_t w1_mlock; | ||
39 | |||
40 | extern int w1_process(void *); | ||
41 | |||
42 | static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl, | 33 | static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl, |
43 | struct device_driver *driver, | 34 | struct device_driver *driver, |
44 | struct device *device) | 35 | struct device *device) |
@@ -103,7 +94,7 @@ static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl, | |||
103 | return dev; | 94 | return dev; |
104 | } | 95 | } |
105 | 96 | ||
106 | void w1_free_dev(struct w1_master *dev) | 97 | static void w1_free_dev(struct w1_master *dev) |
107 | { | 98 | { |
108 | device_unregister(&dev->dev); | 99 | device_unregister(&dev->dev); |
109 | } | 100 | } |