Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata_piix: constify pci_bits

pci_bits are not supposed to change at runtime. Functions
pci_test_config_bits() working with const 'struct pci_bits'.
So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Arvind Yadav and committed by
Tejun Heo
494fd076 e47ecd4e

+1 -1
+1 -1
drivers/ata/ata_piix.c
··· 458 458 [ich8_2port_sata_byt] = &ich8_2port_map_db, 459 459 }; 460 460 461 - static struct pci_bits piix_enable_bits[] = { 461 + static const struct pci_bits piix_enable_bits[] = { 462 462 { 0x41U, 1U, 0x80UL, 0x80UL }, /* port 0 */ 463 463 { 0x43U, 1U, 0x80UL, 0x80UL }, /* port 1 */ 464 464 };