Module Name: src
Committed By: cliff
Date: Tue Aug 2 01:11:08 UTC 2011
Modified Files:
src/sys/dev/nor: cfi.h
Log Message:
- CFI_0002_STATS no longer defined here
- add missing arg for do-nothing variant of CFI_0002_STATS_INIT()
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/nor/cfi.h
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/nor/cfi.h
diff -u src/sys/dev/nor/cfi.h:1.4 src/sys/dev/nor/cfi.h:1.5
--- src/sys/dev/nor/cfi.h:1.4 Sat Jul 23 06:27:09 2011
+++ src/sys/dev/nor/cfi.h Tue Aug 2 01:11:08 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: cfi.h,v 1.4 2011/07/23 06:27:09 cliff Exp $ */
+/* $NetBSD: cfi.h,v 1.5 2011/08/02 01:11:08 cliff Exp $ */
#ifndef _CFI_H_
#define _CFI_H_
@@ -147,7 +147,6 @@
* not for long-term use. Some event counters at the flash and nor
* layers might be helpful eventually
*/
-#define CFI_0002_STATS /* XXX TMP */
#ifdef CFI_0002_STATS
struct cfi_0002_stats {
u_long read_page;
@@ -177,7 +176,7 @@
#else
-#define CFI_0002_STATS_INIT(cfi)
+#define CFI_0002_STATS_INIT(dev, cfi)
#define CFI_0002_STATS_INC(cfi, field)
#endif /* CFI_0002_STATS */