提交 78453a31 编写于 作者: A Arvind Yadav 提交者: Martin K. Petersen

scsi: aha1542: constify pnp_device_id

pnp_device_id are not supposed to change at runtime. All functions
working with pnp_device_id provided by <linux/pnp.h> work with const
pnp_device_id. So mark the non-const structs as const.
Signed-off-by: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 92227b8d
...@@ -986,7 +986,7 @@ static struct isa_driver aha1542_isa_driver = { ...@@ -986,7 +986,7 @@ static struct isa_driver aha1542_isa_driver = {
static int isa_registered; static int isa_registered;
#ifdef CONFIG_PNP #ifdef CONFIG_PNP
static struct pnp_device_id aha1542_pnp_ids[] = { static const struct pnp_device_id aha1542_pnp_ids[] = {
{ .id = "ADP1542" }, { .id = "ADP1542" },
{ .id = "" } { .id = "" }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册