From: Elise Lennion Date: Sat, 15 Oct 2016 00:32:03 +0000 (-0300) Subject: staging: sm750fb: Add const qualifier to struct declaration. X-Git-Tag: v4.14-rc1~1919^2~522 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6aab2d7eacb078d2ad9b6ca5245521a7886e5d29;p=platform%2Fkernel%2Flinux-rpi.git staging: sm750fb: Add const qualifier to struct declaration. Const qualifier added to struct declaration to avoid data overwrite during runtime and improve security. Signed-off-by: Elise Lennion Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index b094492..0663ec0 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -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,} };