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

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>

authored by

Colin Ian King and committed by
Damien Le Moal
217ca30f 9ab84425

+1 -1
+1 -1
drivers/ata/pata_pdc202xx_old.c
··· 78 78 { 79 79 struct pci_dev *pdev = to_pci_dev(ap->host->dev); 80 80 int port = 0x60 + 8 * ap->port_no + 4 * adev->devno; 81 - static u16 pio_timing[5] = { 81 + static const u16 pio_timing[5] = { 82 82 0x0913, 0x050C , 0x0308, 0x0206, 0x0104 83 83 }; 84 84 u8 r_ap, r_bp;