aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1/w1.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2005-12-13 17:04:33 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-23 20:28:12 -0500
commita9fb1c7b950bed4afe208c9d67e20f086bb6abbb (patch)
tree496c2b8b292411a6163dc451b8dab82665a8ab99 /drivers/w1/w1.c
parentbaf12ae29ab4cc6381e21b2e1a3af75a6a8f7566 (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.c')
-rw-r--r--drivers/w1/w1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index f0b47fe4ed25..5def7fb903ac 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -164,11 +164,12 @@ struct device w1_master_device = {
164 .release = &w1_master_release 164 .release = &w1_master_release
165}; 165};
166 166
167struct device_driver w1_slave_driver = { 167static struct device_driver w1_slave_driver = {
168 .name = "w1_slave_driver", 168 .name = "w1_slave_driver",
169 .bus = &w1_bus_type, 169 .bus = &w1_bus_type,
170}; 170};
171 171
172#if 0
172struct device w1_slave_device = { 173struct device w1_slave_device = {
173 .parent = NULL, 174 .parent = NULL,
174 .bus = &w1_bus_type, 175 .bus = &w1_bus_type,
@@ -176,6 +177,7 @@ struct device w1_slave_device = {
176 .driver = &w1_slave_driver, 177 .driver = &w1_slave_driver,
177 .release = &w1_slave_release 178 .release = &w1_slave_release
178}; 179};
180#endif /* 0 */
179 181
180static ssize_t w1_master_attribute_show_name(struct device *dev, struct device_attribute *attr, char *buf) 182static ssize_t w1_master_attribute_show_name(struct device *dev, struct device_attribute *attr, char *buf)
181{ 183{
@@ -355,7 +357,7 @@ int w1_create_master_attributes(struct w1_master *master)
355 return sysfs_create_group(&master->dev.kobj, &w1_master_defattr_group); 357 return sysfs_create_group(&master->dev.kobj, &w1_master_defattr_group);
356} 358}
357 359
358void w1_destroy_master_attributes(struct w1_master *master) 360static void w1_destroy_master_attributes(struct w1_master *master)
359{ 361{
360 sysfs_remove_group(&master->dev.kobj, &w1_master_defattr_group); 362 sysfs_remove_group(&master->dev.kobj, &w1_master_defattr_group);
361} 363}