aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTina Johnson <tinajohnson.1234@gmail.com>2014-08-11 17:24:08 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-24 01:55:15 -0400
commit24a7d36a7260a30b8477d1fe0335c87ad846ed56 (patch)
tree210e1d8cb7c99e9421da88c9cc4fbd58f08bfc9a
parent655e5b7c031e84cf8c07cfd6a5944ce53cba1add (diff)
attribute_container: fix whitespace errors
This is a clean-up patch to the attribute_container.c file to fix the whitespace errors. Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/base/attribute_container.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c
index b84ca8f13f9e..5917cc3d603a 100644
--- a/drivers/base/attribute_container.c
+++ b/drivers/base/attribute_container.c
@@ -76,7 +76,7 @@ attribute_container_register(struct attribute_container *cont)
76 INIT_LIST_HEAD(&cont->node); 76 INIT_LIST_HEAD(&cont->node);
77 klist_init(&cont->containers,internal_container_klist_get, 77 klist_init(&cont->containers,internal_container_klist_get,
78 internal_container_klist_put); 78 internal_container_klist_put);
79 79
80 mutex_lock(&attribute_container_mutex); 80 mutex_lock(&attribute_container_mutex);
81 list_add_tail(&cont->node, &attribute_container_list); 81 list_add_tail(&cont->node, &attribute_container_list);
82 mutex_unlock(&attribute_container_mutex); 82 mutex_unlock(&attribute_container_mutex);
@@ -104,14 +104,14 @@ attribute_container_unregister(struct attribute_container *cont)
104 spin_unlock(&cont->containers.k_lock); 104 spin_unlock(&cont->containers.k_lock);
105 mutex_unlock(&attribute_container_mutex); 105 mutex_unlock(&attribute_container_mutex);
106 return retval; 106 return retval;
107 107
108} 108}
109EXPORT_SYMBOL_GPL(attribute_container_unregister); 109EXPORT_SYMBOL_GPL(attribute_container_unregister);
110 110
111/* private function used as class release */ 111/* private function used as class release */
112static void attribute_container_release(struct device *classdev) 112static void attribute_container_release(struct device *classdev)
113{ 113{
114 struct internal_container *ic 114 struct internal_container *ic
115 = container_of(classdev, struct internal_container, classdev); 115 = container_of(classdev, struct internal_container, classdev);
116 struct device *dev = classdev->parent; 116 struct device *dev = classdev->parent;
117 117
@@ -185,7 +185,7 @@ attribute_container_add_device(struct device *dev,
185 n ? container_of(n, typeof(*pos), member) : \ 185 n ? container_of(n, typeof(*pos), member) : \
186 ({ klist_iter_exit(iter) ; NULL; }); \ 186 ({ klist_iter_exit(iter) ; NULL; }); \
187 }) ) != NULL; ) 187 }) ) != NULL; )
188 188
189 189
190/** 190/**
191 * attribute_container_remove_device - make device eligible for removal. 191 * attribute_container_remove_device - make device eligible for removal.
@@ -247,7 +247,7 @@ attribute_container_remove_device(struct device *dev,
247 * container, then use attribute_container_trigger() instead. 247 * container, then use attribute_container_trigger() instead.
248 */ 248 */
249void 249void
250attribute_container_device_trigger(struct device *dev, 250attribute_container_device_trigger(struct device *dev,
251 int (*fn)(struct attribute_container *, 251 int (*fn)(struct attribute_container *,
252 struct device *, 252 struct device *,
253 struct device *)) 253 struct device *))