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.h | |
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.h')
-rw-r--r-- | drivers/w1/w1.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/w1/w1.h b/drivers/w1/w1.h index b62e771e5709..5f09213512bf 100644 --- a/drivers/w1/w1.h +++ b/drivers/w1/w1.h | |||
@@ -203,6 +203,16 @@ static inline struct w1_master* dev_to_w1_master(struct device *dev) | |||
203 | return container_of(dev, struct w1_master, dev); | 203 | return container_of(dev, struct w1_master, dev); |
204 | } | 204 | } |
205 | 205 | ||
206 | extern int w1_max_slave_count; | ||
207 | extern int w1_max_slave_ttl; | ||
208 | extern spinlock_t w1_mlock; | ||
209 | extern struct list_head w1_masters; | ||
210 | extern struct device_driver w1_master_driver; | ||
211 | extern struct device w1_master_device; | ||
212 | |||
213 | int w1_process(void *data); | ||
214 | void w1_reconnect_slaves(struct w1_family *f); | ||
215 | |||
206 | #endif /* __KERNEL__ */ | 216 | #endif /* __KERNEL__ */ |
207 | 217 | ||
208 | #endif /* __W1_H */ | 218 | #endif /* __W1_H */ |