Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/dev minor constify
details: https://anonhg.NetBSD.org/src/rev/a1fc60988d13
branches: trunk
changeset: 753774:a1fc60988d13
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Apr 09 17:06:31 2010 +0000
description:
minor constify
diffstat:
sys/arch/atari/dev/zs.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r 2414d03f14fc -r a1fc60988d13 sys/arch/atari/dev/zs.c
--- a/sys/arch/atari/dev/zs.c Fri Apr 09 16:33:06 2010 +0000
+++ b/sys/arch/atari/dev/zs.c Fri Apr 09 17:06:31 2010 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index