* [PATCH 0/2] fix checkpatch.pl issues of Base: attribute_container.c
@ 2014-08-11 21:24 Tina Johnson
2014-08-11 21:24 ` [PATCH 1/2] Base: fix whitespace errors Tina Johnson
2014-08-11 21:24 ` [PATCH 2/2] Base: fix coding style issues Tina Johnson
0 siblings, 2 replies; 3+ messages in thread
From: Tina Johnson @ 2014-08-11 21:24 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Tina Johnson
Clean-up patches to fix checkpatch.pl errors.
Tina Johnson (2):
Base: fix whitespace errors
Base: fix coding style issues
drivers/base/attribute_container.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
--
1.7.10.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] Base: fix whitespace errors
2014-08-11 21:24 [PATCH 0/2] fix checkpatch.pl issues of Base: attribute_container.c Tina Johnson
@ 2014-08-11 21:24 ` Tina Johnson
2014-08-11 21:24 ` [PATCH 2/2] Base: fix coding style issues Tina Johnson
1 sibling, 0 replies; 3+ messages in thread
From: Tina Johnson @ 2014-08-11 21:24 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Tina Johnson
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>
---
drivers/base/attribute_container.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c
index b84ca8f..5917cc3 100644
--- a/drivers/base/attribute_container.c
+++ b/drivers/base/attribute_container.c
@@ -76,7 +76,7 @@ attribute_container_register(struct attribute_container *cont)
INIT_LIST_HEAD(&cont->node);
klist_init(&cont->containers,internal_container_klist_get,
internal_container_klist_put);
-
+
mutex_lock(&attribute_container_mutex);
list_add_tail(&cont->node, &attribute_container_list);
mutex_unlock(&attribute_container_mutex);
@@ -104,14 +104,14 @@ attribute_container_unregister(struct attribute_container *cont)
spin_unlock(&cont->containers.k_lock);
mutex_unlock(&attribute_container_mutex);
return retval;
-
+
}
EXPORT_SYMBOL_GPL(attribute_container_unregister);
/* private function used as class release */
static void attribute_container_release(struct device *classdev)
{
- struct internal_container *ic
+ struct internal_container *ic
= container_of(classdev, struct internal_container, classdev);
struct device *dev = classdev->parent;
@@ -185,7 +185,7 @@ attribute_container_add_device(struct device *dev,
n ? container_of(n, typeof(*pos), member) : \
({ klist_iter_exit(iter) ; NULL; }); \
}) ) != NULL; )
-
+
/**
* attribute_container_remove_device - make device eligible for removal.
@@ -247,7 +247,7 @@ attribute_container_remove_device(struct device *dev,
* container, then use attribute_container_trigger() instead.
*/
void
-attribute_container_device_trigger(struct device *dev,
+attribute_container_device_trigger(struct device *dev,
int (*fn)(struct attribute_container *,
struct device *,
struct device *))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] Base: fix coding style issues
2014-08-11 21:24 [PATCH 0/2] fix checkpatch.pl issues of Base: attribute_container.c Tina Johnson
2014-08-11 21:24 ` [PATCH 1/2] Base: fix whitespace errors Tina Johnson
@ 2014-08-11 21:24 ` Tina Johnson
1 sibling, 0 replies; 3+ messages in thread
From: Tina Johnson @ 2014-08-11 21:24 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Tina Johnson
Fix checkpatch.pl issues with coding style. Added and removed spaces
accordingly.
Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
---
drivers/base/attribute_container.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c
index 5917cc3..3ead3af 100644
--- a/drivers/base/attribute_container.c
+++ b/drivers/base/attribute_container.c
@@ -74,7 +74,7 @@ int
attribute_container_register(struct attribute_container *cont)
{
INIT_LIST_HEAD(&cont->node);
- klist_init(&cont->containers,internal_container_klist_get,
+ klist_init(&cont->containers, internal_container_klist_get,
internal_container_klist_put);
mutex_lock(&attribute_container_mutex);
@@ -184,7 +184,7 @@ attribute_container_add_device(struct device *dev,
struct klist_node *n = klist_next(iter); \
n ? container_of(n, typeof(*pos), member) : \
({ klist_iter_exit(iter) ; NULL; }); \
- }) ) != NULL; )
+ })) != NULL;)
/**
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-11 21:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 21:24 [PATCH 0/2] fix checkpatch.pl issues of Base: attribute_container.c Tina Johnson
2014-08-11 21:24 ` [PATCH 1/2] Base: fix whitespace errors Tina Johnson
2014-08-11 21:24 ` [PATCH 2/2] Base: fix coding style issues Tina Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox