mfd: Coding style fixes

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>

authored by Ben Dooks and committed by Samuel Ortiz 7f71ac93 96ee4199

+15 -17
+7 -8
drivers/mfd/mfd-core.c
··· 16 16 #include <linux/mfd/core.h> 17 17 18 18 static int mfd_add_device(struct platform_device *parent, 19 - const struct mfd_cell *cell, 20 - struct resource *mem_base, 21 - int irq_base) 19 + const struct mfd_cell *cell, 20 + struct resource *mem_base, 21 + int irq_base) 22 22 { 23 23 struct resource res[cell->num_resources]; 24 24 struct platform_device *pdev; ··· 75 75 return ret; 76 76 } 77 77 78 - int mfd_add_devices( 79 - struct platform_device *parent, 80 - const struct mfd_cell *cells, int n_devs, 81 - struct resource *mem_base, 82 - int irq_base) 78 + int mfd_add_devices(struct platform_device *parent, 79 + const struct mfd_cell *cells, int n_devs, 80 + struct resource *mem_base, 81 + int irq_base) 83 82 { 84 83 int i; 85 84 int ret = 0;
+8 -9
include/linux/mfd/core.h
··· 1 - #ifndef MFD_CORE_H 2 - #define MFD_CORE_H 3 1 /* 4 2 * drivers/mfd/mfd-core.h 5 3 * ··· 10 12 * published by the Free Software Foundation. 11 13 * 12 14 */ 15 + 16 + #ifndef MFD_CORE_H 17 + #define MFD_CORE_H 13 18 14 19 #include <linux/platform_device.h> 15 20 ··· 39 38 const struct resource *resources; 40 39 }; 41 40 42 - static inline struct mfd_cell * 43 - mfd_get_cell(struct platform_device *pdev) 41 + static inline struct mfd_cell *mfd_get_cell(struct platform_device *pdev) 44 42 { 45 43 return (struct mfd_cell *)pdev->dev.platform_data; 46 44 } 47 45 48 - extern int mfd_add_devices( 49 - struct platform_device *parent, 50 - const struct mfd_cell *cells, int n_devs, 51 - struct resource *mem_base, 52 - int irq_base); 46 + extern int mfd_add_devices(struct platform_device *parent, 47 + const struct mfd_cell *cells, int n_devs, 48 + struct resource *mem_base, 49 + int irq_base); 53 50 54 51 extern void mfd_remove_devices(struct platform_device *parent); 55 52