projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30b7a2c
)
misc: enclosure: Fix space before '[' error
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Wed, 29 Nov 2017 13:08:31 +0000
(18:38 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 7 Dec 2017 17:45:31 +0000
(18:45 +0100)
Fix checkpatch.pl error:
ERROR: space prohibited before open square bracket '['.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/enclosure.c
patch
|
blob
|
history
diff --git
a/drivers/misc/enclosure.c
b/drivers/misc/enclosure.c
index eb29113e0bac2437f1714af1e4189b74fe992b6f..c4c5552abf145ad22a4802748cea0e8e200a5755 100644
(file)
--- a/
drivers/misc/enclosure.c
+++ b/
drivers/misc/enclosure.c
@@
-468,7
+468,7
@@
static struct class enclosure_class = {
.dev_groups = enclosure_class_groups,
};
-static const char *const enclosure_status
[] = {
+static const char *const enclosure_status[] = {
[ENCLOSURE_STATUS_UNSUPPORTED] = "unsupported",
[ENCLOSURE_STATUS_OK] = "OK",
[ENCLOSURE_STATUS_CRITICAL] = "critical",
@@
-480,7
+480,7
@@
static const char *const enclosure_status [] = {
[ENCLOSURE_STATUS_MAX] = NULL,
};
-static const char *const enclosure_type
[] = {
+static const char *const enclosure_type[] = {
[ENCLOSURE_COMPONENT_DEVICE] = "device",
[ENCLOSURE_COMPONENT_ARRAY_DEVICE] = "array device",
};