diff options
author | marius <marius@FreeBSD.org> | 2012-03-21 16:59:39 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2012-03-21 16:59:39 +0000 |
commit | cc444f6cf55f23db4d16615150883d872ffb5bd2 (patch) | |
tree | ecf4732c0a19395313044e11b9f3ed72b03a4eea /sys/dev/ata/chipsets/ata-adaptec.c | |
parent | 20d817657d8db6ea88d3c8f0ab6ea12ee1a7934d (diff) | |
download | FreeBSD-src-cc444f6cf55f23db4d16615150883d872ffb5bd2.zip FreeBSD-src-cc444f6cf55f23db4d16615150883d872ffb5bd2.tar.gz |
- First pass at const'ifying ata(4) as appropriate.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers
MFC after: 1 week
Diffstat (limited to 'sys/dev/ata/chipsets/ata-adaptec.c')
-rw-r--r-- | sys/dev/ata/chipsets/ata-adaptec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ata/chipsets/ata-adaptec.c b/sys/dev/ata/chipsets/ata-adaptec.c index 2781a31..169f933 100644 --- a/sys/dev/ata/chipsets/ata-adaptec.c +++ b/sys/dev/ata/chipsets/ata-adaptec.c @@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$"); #define MV_60XX 60 //must match ata_marvell.c's definition #define MV_7042 72 //must match ata_marvell.c's definition - /* * Adaptec chipset support functions */ @@ -63,7 +62,7 @@ static int ata_adaptec_probe(device_t dev) { struct ata_pci_controller *ctlr = device_get_softc(dev); - static struct ata_chip_id ids[] = + static const struct ata_chip_id const ids[] = {{ ATA_ADAPTEC_1420, 0, 4, MV_60XX, ATA_SA300, "1420SA" }, { ATA_ADAPTEC_1430, 0, 4, MV_7042, ATA_SA300, "1430SA" }, { 0, 0, 0, 0, 0, 0}}; |