mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
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>
This commit is contained in:
parent
96ee41993b
commit
7f71ac9374
@ -75,8 +75,7 @@ fail_alloc:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int mfd_add_devices(
|
||||
struct platform_device *parent,
|
||||
int mfd_add_devices(struct platform_device *parent,
|
||||
const struct mfd_cell *cells, int n_devs,
|
||||
struct resource *mem_base,
|
||||
int irq_base)
|
||||
|
@ -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,14 +39,12 @@ 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,
|
||||
extern int mfd_add_devices(struct platform_device *parent,
|
||||
const struct mfd_cell *cells, int n_devs,
|
||||
struct resource *mem_base,
|
||||
int irq_base);
|
||||
|
Loading…
Reference in New Issue
Block a user