aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_device.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2009-01-28 21:01:02 +0100
committerGeert Uytterhoeven <geert@linux-m68k.org>2010-05-17 21:37:40 +0200
commit0b7f1a7efb38b551f5948a13d0b36e876ba536db (patch)
treea1982c30350b7be11b4db66e7c2bcd4983ed1998 /include/linux/platform_device.h
parentadbf6e6952e80ae42a403442dcae21438cae94b3 (diff)
downloadkernel_samsung_espresso10-0b7f1a7efb38b551f5948a13d0b36e876ba536db.zip
kernel_samsung_espresso10-0b7f1a7efb38b551f5948a13d0b36e876ba536db.tar.gz
kernel_samsung_espresso10-0b7f1a7efb38b551f5948a13d0b36e876ba536db.tar.bz2
platform: Make platform resource input parameters const
Make the platform resource input parameters of platform_device_add_resources() and platform_device_register_simple() const, as the resources are copied and never modified. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/platform_device.h')
-rw-r--r--include/linux/platform_device.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
index 212da17..5417944 100644
--- a/include/linux/platform_device.h
+++ b/include/linux/platform_device.h
@@ -44,12 +44,14 @@ extern int platform_get_irq_byname(struct platform_device *, const char *);
extern int platform_add_devices(struct platform_device **, int);
extern struct platform_device *platform_device_register_simple(const char *, int id,
- struct resource *, unsigned int);
+ const struct resource *, unsigned int);
extern struct platform_device *platform_device_register_data(struct device *,
const char *, int, const void *, size_t);
extern struct platform_device *platform_device_alloc(const char *name, int id);
-extern int platform_device_add_resources(struct platform_device *pdev, struct resource *res, unsigned int num);
+extern int platform_device_add_resources(struct platform_device *pdev,
+ const struct resource *res,
+ unsigned int num);
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 void platform_device_del(struct platform_device *pdev);