aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-07-28 12:29:09 -0400
committerSamuel Ortiz <sameo@openedhand.com>2008-07-28 12:29:09 -0400
commit7f71ac9374fec066e428892a68db158946cee1fb (patch)
tree56c0ef9140380cfa0ecaff155c6f670f12f7733e /include/linux
parent96ee41993b5b25ee0fbde2d4dcaac1f8c5ef5cc4 (diff)
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/core.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h
index bb3dd0545928..b7cbb9968339 100644
--- a/include/linux/mfd/core.h
+++ b/include/linux/mfd/core.h
@@ -1,5 +1,3 @@
1#ifndef MFD_CORE_H
2#define MFD_CORE_H
3/* 1/*
4 * drivers/mfd/mfd-core.h 2 * drivers/mfd/mfd-core.h
5 * 3 *
@@ -13,6 +11,9 @@
13 * 11 *
14 */ 12 */
15 13
14#ifndef MFD_CORE_H
15#define MFD_CORE_H
16
16#include <linux/platform_device.h> 17#include <linux/platform_device.h>
17 18
18/* 19/*
@@ -38,17 +39,15 @@ struct mfd_cell {
38 const struct resource *resources; 39 const struct resource *resources;
39}; 40};
40 41
41static inline struct mfd_cell * 42static inline struct mfd_cell *mfd_get_cell(struct platform_device *pdev)
42mfd_get_cell(struct platform_device *pdev)
43{ 43{
44 return (struct mfd_cell *)pdev->dev.platform_data; 44 return (struct mfd_cell *)pdev->dev.platform_data;
45} 45}
46 46
47extern int mfd_add_devices( 47extern int mfd_add_devices(struct platform_device *parent,
48 struct platform_device *parent, 48 const struct mfd_cell *cells, int n_devs,
49 const struct mfd_cell *cells, int n_devs, 49 struct resource *mem_base,
50 struct resource *mem_base, 50 int irq_base);
51 int irq_base);
52 51
53extern void mfd_remove_devices(struct platform_device *parent); 52extern void mfd_remove_devices(struct platform_device *parent);
54 53