mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
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>
This commit is contained in:
parent
e47ecd4e48
commit
494fd076ea
1 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,7 @@ static const struct piix_map_db *piix_map_db_table[] = {
|
||||||
[ich8_2port_sata_byt] = &ich8_2port_map_db,
|
[ich8_2port_sata_byt] = &ich8_2port_map_db,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_bits piix_enable_bits[] = {
|
static const struct pci_bits piix_enable_bits[] = {
|
||||||
{ 0x41U, 1U, 0x80UL, 0x80UL }, /* port 0 */
|
{ 0x41U, 1U, 0x80UL, 0x80UL }, /* port 0 */
|
||||||
{ 0x43U, 1U, 0x80UL, 0x80UL }, /* port 1 */
|
{ 0x43U, 1U, 0x80UL, 0x80UL }, /* port 1 */
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue