summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-11-29 18:38:31 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-07 18:45:31 +0100
commit367ef846bbcaafb9aa4ae95552942134064e99f5 (patch)
tree7b91afa1b228ccc636e6889d3786e8b7e9e0dc53
parent30b7a2c19e296fc4b8a9a21d67752d8dd55bc7dc (diff)
downloadop-kernel-dev-367ef846bbcaafb9aa4ae95552942134064e99f5.zip
op-kernel-dev-367ef846bbcaafb9aa4ae95552942134064e99f5.tar.gz
misc: enclosure: Fix space before '[' error
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>
-rw-r--r--drivers/misc/enclosure.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/enclosure.c b/drivers/misc/enclosure.c
index eb29113..c4c5552 100644
--- 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",
};
OpenPOWER on IntegriCloud