Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c fix some c&p bugs.



details:   https://anonhg.NetBSD.org/src/rev/ca4cec54ee44
branches:  trunk
changeset: 332752:ca4cec54ee44
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Oct 07 21:32:10 2014 +0000

description:
fix some c&p bugs.

diffstat:

 sys/dev/i2c/motoi2creg.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 0b4abc75205c -r ca4cec54ee44 sys/dev/i2c/motoi2creg.h
--- a/sys/dev/i2c/motoi2creg.h  Tue Oct 07 19:26:31 2014 +0000
+++ b/sys/dev/i2c/motoi2creg.h  Tue Oct 07 21:32:10 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: motoi2creg.h,v 1.2 2011/01/04 02:50:08 nisimura Exp $ */
+/* $NetBSD: motoi2creg.h,v 1.3 2014/10/07 21:32:10 matt Exp $ */
 
 /*-
  * Copyright (c) 2007, 2010 The NetBSD Foundation, Inc.
@@ -79,10 +79,10 @@
 #define FDR_B(n)               (((n) & 0x1c) >> 2)
 
 #define        MOTOI2C_GROUP_A_VALUES  0x8765fca9U
-#define        MOTOI2C_A(a)            ((MOTOI2C_GROUP_A_VALUE >> (4*(fdr_a))) & 0xf)
-#define        MOTOI2C_B(b)            (1 + (fdr_b))
+#define        MOTOI2C_A(a)            ((MOTOI2C_GROUP_A_VALUE >> (4*(a))) & 0xf)
+#define        MOTOI2C_B(b)            (1 + (b))
 #define        MOTOI2C_DIV(name, fdr)  \
-       ((name##_A(FDR_A(hdr)) + named##_C(FDR_B(fdr))) << name##_B(FDR_B(hdr)))
+       ((name##_A(FDR_A(fdr)) + named##_C(FDR_B(fdr))) << name##_B(FDR_B(fdr)))
 
 #define        IMX31_A(fdr_a)          MOTOI2C_A(fdr_a)
 #define        IMX31_B(fdr_b)          MOTOI2C_B(fdr_b)



Home | Main Index | Thread Index | Old Index