Skip to contentSkip to conversation

staging: sm750fb: Add const qualifier to struct declaration.

PATCH New Elise Lennion 1 participant 1 message Oct 14, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: sm750fb: Add const qualifier to struct declaration.

Const qualifier added to struct declaration to make the code more efficient.

---
 drivers/staging/sm750fb/sm750.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/sm750fb/sm750.c +1 -1
index b094492..0663ec0 100644
@@ -1188,7 +1188,7 @@ static int __init lynxfb_setup(char *options)
 	return 0;
 }
 
-static struct pci_device_id smi_pci_table[] = {
+static const struct pci_device_id smi_pci_table[] = {
 	{ PCI_DEVICE(0x126f, 0x0750), },
 	{0,}
 };
Signature · 1 line
2.7.4