From: Colin Ian King Date: Sun, 23 Jan 2022 22:22:46 +0000 (+0000) Subject: ata: pata_pdc202xx_old: make static read-only array pio_timing const X-Git-Tag: v6.6.17~7951^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=217ca30fbf4b5e976d9170b85b5ed06f3511ef98;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Sergey Shtylyov Signed-off-by: Damien Le Moal --- diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c index b998490..f894ff2 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;