Module Name: src
Committed By: tsutsui
Date: Fri Apr 9 17:06:31 UTC 2010
Modified Files:
src/sys/arch/atari/dev: zs.c
Log Message:
minor constify
To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/atari/dev/zs.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/arch/atari/dev/zs.c
diff -u src/sys/arch/atari/dev/zs.c:1.70 src/sys/arch/atari/dev/zs.c:1.71
--- src/sys/arch/atari/dev/zs.c:1.70 Fri Apr 9 16:30:15 2010
+++ src/sys/arch/atari/dev/zs.c Fri Apr 9 17:06:31 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.70 2010/04/09 16:30:15 tsutsui Exp $ */
+/* $NetBSD: zs.c,v 1.71 2010/04/09 17:06:31 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.70 2010/04/09 16:30:15 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.71 2010/04/09 17:06:31 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -156,7 +156,7 @@
* divisor 16, therefor the division by 16 can as
* well be done here.
*/
-static u_long zs_freqs_tt[] = {
+static const u_long zs_freqs_tt[] = {
/*
* Atari TT, RTxCB is generated by TT-MFP timer C,
* which is set to 307.2 kHz during initialisation
@@ -173,7 +173,7 @@
2457600 /* TRxCB, from BCLK */
};
-static u_long zs_freqs_falcon[] = {
+static const u_long zs_freqs_falcon[] = {
/*
* Atari Falcon, XXX no specs available, this might be wrong
*/
@@ -188,7 +188,7 @@
2457600 /* TRxCB, ??? */
};
-static u_long zs_freqs_hades[] = {
+static const u_long zs_freqs_hades[] = {
/*
* XXX: Channel-A unchecked!!!!!
*/
@@ -203,7 +203,7 @@
3768800 /* TRxCB, 3.7688MHz */
};
-static u_long zs_freqs_generic[] = {
+static const u_long zs_freqs_generic[] = {
/*
* other machines, assume only PCLK is available
*/
@@ -217,7 +217,7 @@
0, /* RTxCB, unknown */
0 /* TRxCB, unknown */
};
-static u_long *zs_frequencies;
+static const u_long *zs_frequencies;
/* Definition of the driver for autoconfig. */
static int zsmatch(device_t, cfdata_t, void *);
@@ -1165,7 +1165,7 @@
bestdiff = bestbps = 0;
unit = (unit & 1) << 2;
for (source = 0; source < 4; ++source) {
- long freq = zs_frequencies[unit + source];
+ u_long freq = zs_frequencies[unit + source];
int diff, bps, div, clkm, brgm, tcon;
bps = div = clkm = brgm = tcon = 0;