diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-01-01 15:43:28 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-07 17:04:46 -0800 |
commit | 3d03ba4d1dd2246adff5a9ff1194a539b3bc05a7 (patch) | |
tree | 0b458f290e55ba7972862ecd0b04606f0c05e372 /include/linux | |
parent | ecdf6ceb8cf4756bd4214bf9755755752b6015f5 (diff) |
driver core: make platform_device_id table const
The platform ID table is normally const, force that by adding the attribute.
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/platform_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 25e64b43e64..2c2d035bfb9 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -21,7 +21,7 @@ struct platform_device { u32 num_resources; struct resource * resource; - struct platform_device_id *id_entry; + const struct platform_device_id *id_entry; /* arch specific additions */ struct pdev_archdata archdata; |