summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-01-24 01:22:46 +0300
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-01-31 03:58:32 +0300
commit217ca30fbf4b5e976d9170b85b5ed06f3511ef98 (patch)
tree69eca2f7ad77907dce3fb3a3bbccf21ebf61fdb1 /drivers
parent9ab844253aeddcac8f21e2d5c496fa2a7b6baf64 (diff)
downloadlinux-217ca30fbf4b5e976d9170b85b5ed06f3511ef98.tar.xz
ata: pata_pdc202xx_old: make static read-only array pio_timing const
The static array pio_timing is read-only so it make sense to make it const. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/pata_pdc202xx_old.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c
index b99849095853..f894ff2de0a9 100644
--- a/drivers/ata/pata_pdc202xx_old.c
+++ b/drivers/ata/pata_pdc202xx_old.c
@@ -78,7 +78,7 @@ static void pdc202xx_configure_piomode(struct ata_port *ap, struct ata_device *a
{
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
int port = 0x60 + 8 * ap->port_no + 4 * adev->devno;
- static u16 pio_timing[5] = {
+ static const u16 pio_timing[5] = {
0x0913, 0x050C , 0x0308, 0x0206, 0x0104
};
u8 r_ap, r_bp;