mfd: Coding style fixes
authorBen Dooks <ben-linux@fluff.org>
Mon, 28 Jul 2008 16:29:09 +0000 (18:29 +0200)
committerSamuel Ortiz <sameo@openedhand.com>
Mon, 28 Jul 2008 16:29:09 +0000 (18:29 +0200)
Fix some coding style fixes in the mfd core driver.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/mfd-core.c
include/linux/mfd/core.h

index 4dc861a..5020770 100644 (file)
@@ -16,9 +16,9 @@
 #include <linux/mfd/core.h>
 
 static int mfd_add_device(struct platform_device *parent,
-               const struct mfd_cell *cell,
-               struct resource *mem_base,
-               int irq_base)
+                         const struct mfd_cell *cell,
+                         struct resource *mem_base,
+                         int irq_base)
 {
        struct resource res[cell->num_resources];
        struct platform_device *pdev;
@@ -75,11 +75,10 @@ fail_alloc:
        return ret;
 }
 
-int mfd_add_devices(
-               struct platform_device *parent,
-               const struct mfd_cell *cells, int n_devs,
-               struct resource *mem_base,
-               int irq_base)
+int mfd_add_devices(struct platform_device *parent,
+                   const struct mfd_cell *cells, int n_devs,
+                   struct resource *mem_base,
+                   int irq_base)
 {
        int i;
        int ret = 0;
index bb3dd05..b7cbb99 100644 (file)
@@ -1,5 +1,3 @@
-#ifndef MFD_CORE_H
-#define MFD_CORE_H
 /*
  * drivers/mfd/mfd-core.h
  *
@@ -13,6 +11,9 @@
  *
  */
 
+#ifndef MFD_CORE_H
+#define MFD_CORE_H
+
 #include <linux/platform_device.h>
 
 /*
@@ -38,17 +39,15 @@ struct mfd_cell {
        const struct resource   *resources;
 };
 
-static inline struct mfd_cell *
-mfd_get_cell(struct platform_device *pdev)
+static inline struct mfd_cell *mfd_get_cell(struct platform_device *pdev)
 {
        return (struct mfd_cell *)pdev->dev.platform_data;
 }
 
-extern int mfd_add_devices(
-               struct platform_device *parent,
-               const struct mfd_cell *cells, int n_devs,
-               struct resource *mem_base,
-               int irq_base);
+extern int mfd_add_devices(struct platform_device *parent,
+                          const struct mfd_cell *cells, int n_devs,
+                          struct resource *mem_base,
+                          int irq_base);
 
 extern void mfd_remove_devices(struct platform_device *parent);