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

scsi: esas2r: constify pci_device_id.

pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by <linux/pci.h> work with const
pci_device_id. So mark the non-const structs as const.
Signed-off-by: NArvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: NBradley Grove <bgrove@attotech.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 582b0ab2
...@@ -309,7 +309,7 @@ MODULE_PARM_DESC(interrupt_mode, ...@@ -309,7 +309,7 @@ MODULE_PARM_DESC(interrupt_mode,
"Defines the interrupt mode to use. 0 for legacy" "Defines the interrupt mode to use. 0 for legacy"
", 1 for MSI. Default is MSI (1)."); ", 1 for MSI. Default is MSI (1).");
static struct pci_device_id static const struct pci_device_id
esas2r_pci_table[] = { esas2r_pci_table[] = {
{ ATTO_VENDOR_ID, 0x0049, ATTO_VENDOR_ID, 0x0049, { ATTO_VENDOR_ID, 0x0049, ATTO_VENDOR_ID, 0x0049,
0, 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册