[Midnightbsd-cvs] src [7225] trunk/sys/dev/ata/chipsets: remove more crazy const

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Aug 11 20:07:04 EDT 2015


Revision: 7225
          http://svnweb.midnightbsd.org/src/?rev=7225
Author:   laffer1
Date:     2015-08-11 20:07:04 -0400 (Tue, 11 Aug 2015)
Log Message:
-----------
remove more crazy const

Modified Paths:
--------------
    trunk/sys/dev/ata/chipsets/ata-acard.c
    trunk/sys/dev/ata/chipsets/ata-acerlabs.c
    trunk/sys/dev/ata/chipsets/ata-adaptec.c
    trunk/sys/dev/ata/chipsets/ata-amd.c
    trunk/sys/dev/ata/chipsets/ata-ati.c
    trunk/sys/dev/ata/chipsets/ata-highpoint.c
    trunk/sys/dev/ata/chipsets/ata-intel.c
    trunk/sys/dev/ata/chipsets/ata-sis.c
    trunk/sys/dev/ata/chipsets/ata-via.c

Modified: trunk/sys/dev/ata/chipsets/ata-acard.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-acard.c	2015-08-11 23:53:38 UTC (rev 7224)
+++ trunk/sys/dev/ata/chipsets/ata-acard.c	2015-08-12 00:07:04 UTC (rev 7225)
@@ -81,7 +81,7 @@
 ata_acard_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_ATP850R, 0, ATP_OLD, 0x00, ATA_UDMA2, "ATP850" },
      { ATA_ATP860A, 0, 0,       0x00, ATA_UDMA4, "ATP860A" },
      { ATA_ATP860R, 0, 0,       0x00, ATA_UDMA4, "ATP860R" },

Modified: trunk/sys/dev/ata/chipsets/ata-acerlabs.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-acerlabs.c	2015-08-11 23:53:38 UTC (rev 7224)
+++ trunk/sys/dev/ata/chipsets/ata-acerlabs.c	2015-08-12 00:07:04 UTC (rev 7225)
@@ -75,7 +75,7 @@
 ata_ali_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_ALI_5289, 0x00, 2, ALI_SATA, ATA_SA150, "M5289" },
      { ATA_ALI_5288, 0x00, 4, ALI_SATA, ATA_SA300, "M5288" },
      { ATA_ALI_5287, 0x00, 4, ALI_SATA, ATA_SA150, "M5287" },

Modified: trunk/sys/dev/ata/chipsets/ata-adaptec.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-adaptec.c	2015-08-11 23:53:38 UTC (rev 7224)
+++ trunk/sys/dev/ata/chipsets/ata-adaptec.c	2015-08-12 00:07:04 UTC (rev 7225)
@@ -62,7 +62,7 @@
 ata_adaptec_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id 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}};

Modified: trunk/sys/dev/ata/chipsets/ata-amd.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-amd.c	2015-08-11 23:53:38 UTC (rev 7224)
+++ trunk/sys/dev/ata/chipsets/ata-amd.c	2015-08-12 00:07:04 UTC (rev 7225)
@@ -67,7 +67,7 @@
 ata_amd_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_AMD756,  0x00, 0x00,              0, ATA_UDMA4, "756" },
      { ATA_AMD766,  0x00, AMD_CABLE|AMD_BUG, 0, ATA_UDMA5, "766" },
      { ATA_AMD768,  0x00, AMD_CABLE,         0, ATA_UDMA5, "768" },

Modified: trunk/sys/dev/ata/chipsets/ata-ati.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-ati.c	2015-08-11 23:53:38 UTC (rev 7224)
+++ trunk/sys/dev/ata/chipsets/ata-ati.c	2015-08-12 00:07:04 UTC (rev 7225)
@@ -75,7 +75,7 @@
 ata_ati_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_ATI_IXP200,    0x00, ATI_PATA, 0, ATA_UDMA5, "IXP200" },
      { ATA_ATI_IXP300,    0x00, ATI_PATA, 0, ATA_UDMA6, "IXP300" },
      { ATA_ATI_IXP300_S1, 0x00, ATI_SATA, SII_BUG, ATA_SA150, "IXP300" },

Modified: trunk/sys/dev/ata/chipsets/ata-highpoint.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-highpoint.c	2015-08-11 23:53:38 UTC (rev 7224)
+++ trunk/sys/dev/ata/chipsets/ata-highpoint.c	2015-08-12 00:07:04 UTC (rev 7225)
@@ -73,7 +73,7 @@
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
     const struct ata_chip_id *idx;
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_HPT374, 0x07, HPT_374, 0,       ATA_UDMA6, "HPT374" },
      { ATA_HPT372, 0x02, HPT_372, 0,       ATA_UDMA6, "HPT372N" },
      { ATA_HPT372, 0x01, HPT_372, 0,       ATA_UDMA6, "HPT372" },

Modified: trunk/sys/dev/ata/chipsets/ata-intel.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-intel.c	2015-08-11 23:53:38 UTC (rev 7224)
+++ trunk/sys/dev/ata/chipsets/ata-intel.c	2015-08-12 00:07:04 UTC (rev 7225)
@@ -105,7 +105,7 @@
 ata_intel_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_I82371FB,     0,          0, 2, ATA_WDMA2, "PIIX" },
      { ATA_I82371SB,     0,          0, 2, ATA_WDMA2, "PIIX3" },
      { ATA_I82371AB,     0,          0, 2, ATA_UDMA2, "PIIX4" },

Modified: trunk/sys/dev/ata/chipsets/ata-sis.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-sis.c	2015-08-11 23:53:38 UTC (rev 7224)
+++ trunk/sys/dev/ata/chipsets/ata-sis.c	2015-08-12 00:07:04 UTC (rev 7225)
@@ -74,7 +74,7 @@
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
     const struct ata_chip_id *idx;
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_SIS182,  0x00, SIS_SATA,   0, ATA_SA150, "182" }, /* south */
      { ATA_SIS181,  0x00, SIS_SATA,   0, ATA_SA150, "181" }, /* south */
      { ATA_SIS180,  0x00, SIS_SATA,   0, ATA_SA150, "180" }, /* south */

Modified: trunk/sys/dev/ata/chipsets/ata-via.c
===================================================================
--- trunk/sys/dev/ata/chipsets/ata-via.c	2015-08-11 23:53:38 UTC (rev 7224)
+++ trunk/sys/dev/ata/chipsets/ata-via.c	2015-08-12 00:07:04 UTC (rev 7225)
@@ -89,7 +89,7 @@
 ata_via_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_VIA82C586, 0x02, VIA33,  0x00,    ATA_UDMA2, "82C586B" },
      { ATA_VIA82C586, 0x00, VIA33,  0x00,    ATA_WDMA2, "82C586" },
      { ATA_VIA82C596, 0x12, VIA66,  VIACLK,  ATA_UDMA4, "82C596B" },
@@ -113,7 +113,7 @@
      { ATA_VIAVX855,  0x00, VIA133, 0x00,    ATA_UDMA6, "VX855" },
      { ATA_VIAVX900,  0x00, VIA133, VIASATA, ATA_SA300, "VX900" },
      { 0, 0, 0, 0, 0, 0 }};
-    static const struct ata_chip_id const new_ids[] =
+    static const struct ata_chip_id new_ids[] =
     {{ ATA_VIA6410,   0x00, 0,      0x00,    ATA_UDMA6, "6410" },
      { ATA_VIA6420,   0x00, 7,      0x00,    ATA_SA150, "6420" },
      { ATA_VIA6421,   0x00, 6,      VIABAR,  ATA_SA150, "6421" },



More information about the Midnightbsd-cvs mailing list