Module Name: src
Committed By: matt
Date: Sat Dec 11 22:45:31 UTC 2010
Modified Files:
src/sys/dev/ata: sata_subr.c
Log Message:
Fix typo (31224 -> 3124) and constify an array.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 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.12 src/sys/dev/ata/sata_subr.c:1.13
--- src/sys/dev/ata/sata_subr.c:1.12 Tue Nov 18 09:52:10 2008
+++ src/sys/dev/ata/sata_subr.c Sat Dec 11 22:45:31 2010
@@ -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.
*/