提交 7f71ac93 编写于 作者: B Ben Dooks 提交者: Samuel Ortiz

mfd: Coding style fixes

Fix some coding style fixes in the mfd core driver.
Signed-off-by: NBen Dooks <ben-linux@fluff.org>
Signed-off-by: NSamuel Ortiz <sameo@openedhand.com>
上级 96ee4199
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#include <linux/mfd/core.h> #include <linux/mfd/core.h>
static int mfd_add_device(struct platform_device *parent, static int mfd_add_device(struct platform_device *parent,
const struct mfd_cell *cell, const struct mfd_cell *cell,
struct resource *mem_base, struct resource *mem_base,
int irq_base) int irq_base)
{ {
struct resource res[cell->num_resources]; struct resource res[cell->num_resources];
struct platform_device *pdev; struct platform_device *pdev;
...@@ -75,11 +75,10 @@ static int mfd_add_device(struct platform_device *parent, ...@@ -75,11 +75,10 @@ static int mfd_add_device(struct platform_device *parent,
return ret; return ret;
} }
int mfd_add_devices( int mfd_add_devices(struct platform_device *parent,
struct platform_device *parent, const struct mfd_cell *cells, int n_devs,
const struct mfd_cell *cells, int n_devs, struct resource *mem_base,
struct resource *mem_base, int irq_base)
int irq_base)
{ {
int i; int i;
int ret = 0; int ret = 0;
......
#ifndef MFD_CORE_H
#define MFD_CORE_H
/* /*
* drivers/mfd/mfd-core.h * drivers/mfd/mfd-core.h
* *
...@@ -13,6 +11,9 @@ ...@@ -13,6 +11,9 @@
* *
*/ */
#ifndef MFD_CORE_H
#define MFD_CORE_H
#include <linux/platform_device.h> #include <linux/platform_device.h>
/* /*
...@@ -38,17 +39,15 @@ struct mfd_cell { ...@@ -38,17 +39,15 @@ struct mfd_cell {
const struct resource *resources; const struct resource *resources;
}; };
static inline struct mfd_cell * static inline struct mfd_cell *mfd_get_cell(struct platform_device *pdev)
mfd_get_cell(struct platform_device *pdev)
{ {
return (struct mfd_cell *)pdev->dev.platform_data; return (struct mfd_cell *)pdev->dev.platform_data;
} }
extern int mfd_add_devices( extern int mfd_add_devices(struct platform_device *parent,
struct platform_device *parent, const struct mfd_cell *cells, int n_devs,
const struct mfd_cell *cells, int n_devs, struct resource *mem_base,
struct resource *mem_base, int irq_base);
int irq_base);
extern void mfd_remove_devices(struct platform_device *parent); extern void mfd_remove_devices(struct platform_device *parent);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册