Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ata Fix typo (31224 -> 3124) and constify an array.



details:   https://anonhg.NetBSD.org/src/rev/ac3caf3f558e
branches:  trunk
changeset: 759509:ac3caf3f558e
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Dec 11 22:45:31 2010 +0000

description:
Fix typo (31224 -> 3124) and constify an array.

diffstat:

 sys/dev/ata/sata_subr.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 5d1a1484b607 -r ac3caf3f558e sys/dev/ata/sata_subr.c
--- a/sys/dev/ata/sata_subr.c   Sat Dec 11 22:37:46 2010 +0000
+++ b/sys/dev/ata/sata_subr.c   Sat Dec 11 22:45:31 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sata_subr.c,v 1.12 2008/11/18 09:52:10 cegger Exp $    */
+/*     $NetBSD: sata_subr.c,v 1.13 2010/12/11 22:45:31 matt Exp $      */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
  * Common functions for Serial ATA.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sata_subr.c,v 1.12 2008/11/18 09:52:10 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sata_subr.c,v 1.13 2010/12/11 22:45:31 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -51,7 +51,7 @@
 const char *
 sata_speed(uint32_t sstatus)
 {
-       static const char *sata_speedtab[] = {
+       static const char * const sata_speedtab[] = {
                "no negotiated speed",
                "1.5Gb/s",
                "3.0Gb/s",
@@ -85,7 +85,7 @@
        int i;
 
        /* bring the PHYs online.
-        * The work-around for errata #1 for the 31244 says that we must
+        * The work-around for errata #1 for the 3124 says that we must
         * write 0 to the port first to be sure of correctly initializing
         * the device. It doesn't hurt for other devices.
         */



Home | Main Index | Thread Index | Old Index