|
74 | 74 | attribute_container_register(struct attribute_container *cont) |
75 | 75 | { |
76 | 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 | 78 | internal_container_klist_put); |
79 | | - |
| 79 | + |
80 | 80 | mutex_lock(&attribute_container_mutex); |
81 | 81 | list_add_tail(&cont->node, &attribute_container_list); |
82 | 82 | mutex_unlock(&attribute_container_mutex); |
@@ -104,14 +104,14 @@ attribute_container_unregister(struct attribute_container *cont) |
104 | 104 | spin_unlock(&cont->containers.k_lock); |
105 | 105 | mutex_unlock(&attribute_container_mutex); |
106 | 106 | return retval; |
107 | | - |
| 107 | + |
108 | 108 | } |
109 | 109 | EXPORT_SYMBOL_GPL(attribute_container_unregister); |
110 | 110 |
|
111 | 111 | /* private function used as class release */ |
112 | 112 | static void attribute_container_release(struct device *classdev) |
113 | 113 | { |
114 | | - struct internal_container *ic |
| 114 | + struct internal_container *ic |
115 | 115 | = container_of(classdev, struct internal_container, classdev); |
116 | 116 | struct device *dev = classdev->parent; |
117 | 117 |
|
@@ -184,8 +184,8 @@ attribute_container_add_device(struct device *dev, |
184 | 184 | struct klist_node *n = klist_next(iter); \ |
185 | 185 | n ? container_of(n, typeof(*pos), member) : \ |
186 | 186 | ({ klist_iter_exit(iter) ; NULL; }); \ |
187 | | - }) ) != NULL; ) |
188 | | - |
| 187 | + })) != NULL;) |
| 188 | + |
189 | 189 |
|
190 | 190 | /** |
191 | 191 | * attribute_container_remove_device - make device eligible for removal. |
@@ -247,7 +247,7 @@ attribute_container_remove_device(struct device *dev, |
247 | 247 | * container, then use attribute_container_trigger() instead. |
248 | 248 | */ |
249 | 249 | void |
250 | | -attribute_container_device_trigger(struct device *dev, |
| 250 | +attribute_container_device_trigger(struct device *dev, |
251 | 251 | int (*fn)(struct attribute_container *, |
252 | 252 | struct device *, |
253 | 253 | struct device *)) |
|
0 commit comments