diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2018-01-03 00:13:34 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-01-08 09:15:41 -0500 |
commit | 494fd076ea7bde10142ad427d7ce9c32b238b6db (patch) | |
tree | 803860a11868609cac566fa46ee8fca912158e44 | |
parent | e47ecd4e48030c516e7521403f98903ea1c8f9a7 (diff) |
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>
-rw-r--r-- | drivers/ata/ata_piix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index b702c20fbc2b..7ecb1322a514 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c | |||
@@ -458,7 +458,7 @@ static const struct piix_map_db *piix_map_db_table[] = { | |||
458 | [ich8_2port_sata_byt] = &ich8_2port_map_db, | 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 | { 0x41U, 1U, 0x80UL, 0x80UL }, /* port 0 */ | 462 | { 0x41U, 1U, 0x80UL, 0x80UL }, /* port 0 */ |
463 | { 0x43U, 1U, 0x80UL, 0x80UL }, /* port 1 */ | 463 | { 0x43U, 1U, 0x80UL, 0x80UL }, /* port 1 */ |
464 | }; | 464 | }; |