diff options
author | Lee Jones <lee.jones@linaro.org> | 2015-10-28 12:44:58 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-01-14 03:44:02 -0500 |
commit | 740c19895917d9a25abea65fb20fb13af764ac09 (patch) | |
tree | 55aa057085a893b1dbcefe08f1d0939945395943 /drivers/mfd/cs5535-mfd.c | |
parent | 8827a642a4635d5e696037f9213cb1d015d4cec3 (diff) |
mfd: cs5535-mfd: Add missing line spacing and make local array static
WARNING: Missing a blank line after declarations
+ struct resource *res;
+ res = platform_get_resource(pdev, IORESOURCE_IO, 0);
WARNING: char * array declaration might be better as static const
+ const char *acpi_clones[] = { "olpc-xo1-pm-acpi", "olpc-xo1-sci-acpi" };
total: 0 errors, 2 warnings, 192 lines checked
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/cs5535-mfd.c')
-rw-r--r-- | drivers/mfd/cs5535-mfd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mfd/cs5535-mfd.c b/drivers/mfd/cs5535-mfd.c index be91cb5d6e78..f9d277ff4aaf 100644 --- a/drivers/mfd/cs5535-mfd.c +++ b/drivers/mfd/cs5535-mfd.c | |||
@@ -60,6 +60,7 @@ static int cs5535_mfd_res_enable(struct platform_device *pdev) | |||
60 | static int cs5535_mfd_res_disable(struct platform_device *pdev) | 60 | static int cs5535_mfd_res_disable(struct platform_device *pdev) |
61 | { | 61 | { |
62 | struct resource *res; | 62 | struct resource *res; |
63 | |||
63 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); | 64 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); |
64 | if (!res) { | 65 | if (!res) { |
65 | dev_err(&pdev->dev, "can't fetch device resource info\n"); | 66 | dev_err(&pdev->dev, "can't fetch device resource info\n"); |
@@ -114,7 +115,10 @@ static struct mfd_cell cs5535_mfd_cells[] = { | |||
114 | #ifdef CONFIG_OLPC | 115 | #ifdef CONFIG_OLPC |
115 | static void cs5535_clone_olpc_cells(void) | 116 | static void cs5535_clone_olpc_cells(void) |
116 | { | 117 | { |
117 | const char *acpi_clones[] = { "olpc-xo1-pm-acpi", "olpc-xo1-sci-acpi" }; | 118 | static const char *acpi_clones[] = { |
119 | "olpc-xo1-pm-acpi", | ||
120 | "olpc-xo1-sci-acpi" | ||
121 | }; | ||
118 | 122 | ||
119 | if (!machine_is_olpc()) | 123 | if (!machine_is_olpc()) |
120 | return; | 124 | return; |