driver core: platform_device.h: fix checkpatch errors and warnings
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0258e182e7
commit
6ae07f27ab
|
@ -47,9 +47,12 @@ extern struct bus_type platform_bus_type;
|
||||||
extern struct device platform_bus;
|
extern struct device platform_bus;
|
||||||
|
|
||||||
extern void arch_setup_pdev_archdata(struct platform_device *);
|
extern void arch_setup_pdev_archdata(struct platform_device *);
|
||||||
extern struct resource *platform_get_resource(struct platform_device *, unsigned int, unsigned int);
|
extern struct resource *platform_get_resource(struct platform_device *,
|
||||||
|
unsigned int, unsigned int);
|
||||||
extern int platform_get_irq(struct platform_device *, unsigned int);
|
extern int platform_get_irq(struct platform_device *, unsigned int);
|
||||||
extern struct resource *platform_get_resource_byname(struct platform_device *, unsigned int, const char *);
|
extern struct resource *platform_get_resource_byname(struct platform_device *,
|
||||||
|
unsigned int,
|
||||||
|
const char *);
|
||||||
extern int platform_get_irq_byname(struct platform_device *, const char *);
|
extern int platform_get_irq_byname(struct platform_device *, const char *);
|
||||||
extern int platform_add_devices(struct platform_device **, int);
|
extern int platform_add_devices(struct platform_device **, int);
|
||||||
|
|
||||||
|
@ -161,7 +164,8 @@ extern struct platform_device *platform_device_alloc(const char *name, int id);
|
||||||
extern int platform_device_add_resources(struct platform_device *pdev,
|
extern int platform_device_add_resources(struct platform_device *pdev,
|
||||||
const struct resource *res,
|
const struct resource *res,
|
||||||
unsigned int num);
|
unsigned int num);
|
||||||
extern int platform_device_add_data(struct platform_device *pdev, const void *data, size_t size);
|
extern int platform_device_add_data(struct platform_device *pdev,
|
||||||
|
const void *data, size_t size);
|
||||||
extern int platform_device_add(struct platform_device *pdev);
|
extern int platform_device_add(struct platform_device *pdev);
|
||||||
extern void platform_device_del(struct platform_device *pdev);
|
extern void platform_device_del(struct platform_device *pdev);
|
||||||
extern void platform_device_put(struct platform_device *pdev);
|
extern void platform_device_put(struct platform_device *pdev);
|
||||||
|
@ -190,7 +194,8 @@ static inline void *platform_get_drvdata(const struct platform_device *pdev)
|
||||||
return dev_get_drvdata(&pdev->dev);
|
return dev_get_drvdata(&pdev->dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void platform_set_drvdata(struct platform_device *pdev, void *data)
|
static inline void platform_set_drvdata(struct platform_device *pdev,
|
||||||
|
void *data)
|
||||||
{
|
{
|
||||||
dev_set_drvdata(&pdev->dev, data);
|
dev_set_drvdata(&pdev->dev, data);
|
||||||
}
|
}
|
||||||
|
@ -222,8 +227,8 @@ static void __exit __platform_driver##_exit(void) \
|
||||||
} \
|
} \
|
||||||
module_exit(__platform_driver##_exit);
|
module_exit(__platform_driver##_exit);
|
||||||
|
|
||||||
extern struct platform_device *platform_create_bundle(struct platform_driver *driver,
|
extern struct platform_device *platform_create_bundle(
|
||||||
int (*probe)(struct platform_device *),
|
struct platform_driver *driver, int (*probe)(struct platform_device *),
|
||||||
struct resource *res, unsigned int n_res,
|
struct resource *res, unsigned int n_res,
|
||||||
const void *data, size_t size);
|
const void *data, size_t size);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue