浏览代码

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>
Eric Miao 15 年之前
父节点
当前提交
3d03ba4d1d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/platform_device.h

+ 1 - 1
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;