Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f71ac93 authored by Ben Dooks's avatar Ben Dooks Committed by Samuel Ortiz
Browse files

mfd: Coding style fixes



Fix some coding style fixes in the mfd core driver.

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
parent 96ee4199
Loading
Loading
Loading
Loading
+7 −8
Original line number Original line Diff line number Diff line
@@ -75,8 +75,7 @@ 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)
+8 −9
Original line number Original line Diff line number Diff line
#ifndef MFD_CORE_H
#define MFD_CORE_H
/*
/*
 * drivers/mfd/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>
#include <linux/platform_device.h>


/*
/*
@@ -38,14 +39,12 @@ 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);