Module Name:    src
Committed By:   matt
Date:           Fri Jan  7 02:31:56 UTC 2011

Modified Files:
        src/sys/dev/ata [matt-nb5-pq3]: sata_subr.c

Log Message:
small fixes (constification + comment type).


To generate a diff of this commit:
cvs rdiff -u -r1.11.10.1 -r1.11.10.1.8.1 src/sys/dev/ata/sata_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ata/sata_subr.c
diff -u src/sys/dev/ata/sata_subr.c:1.11.10.1 src/sys/dev/ata/sata_subr.c:1.11.10.1.8.1
--- src/sys/dev/ata/sata_subr.c:1.11.10.1	Sat Nov 22 04:48:41 2008
+++ src/sys/dev/ata/sata_subr.c	Fri Jan  7 02:31:56 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: sata_subr.c,v 1.11.10.1 2008/11/22 04:48:41 snj Exp $	*/
+/*	$NetBSD: sata_subr.c,v 1.11.10.1.8.1 2011/01/07 02:31:56 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.11.10.1 2008/11/22 04:48:41 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sata_subr.c,v 1.11.10.1.8.1 2011/01/07 02:31:56 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.
 	 */

Reply via email to