Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/imcsmb Use I2C_READ_OP_P() rather than negating I2C_...
details: https://anonhg.NetBSD.org/src/rev/9c053564ab04
branches: trunk
changeset: 359853:9c053564ab04
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Tue Feb 27 05:52:10 2018 +0000
description:
Use I2C_READ_OP_P() rather than negating I2C_WRITE_OP_P()
diffstat:
sys/dev/imcsmb/imcsmb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 5e194dce259d -r 9c053564ab04 sys/dev/imcsmb/imcsmb.c
--- a/sys/dev/imcsmb/imcsmb.c Tue Feb 27 05:50:52 2018 +0000
+++ b/sys/dev/imcsmb/imcsmb.c Tue Feb 27 05:52:10 2018 +0000
@@ -417,7 +417,7 @@
}
/* For a read operation, copy the data out */
- if (! I2C_OP_WRITE_P(op)) {
+ if (I2C_OP_READ_P(op)) {
if (len == 2) {
/* The data is returned in bits [15:0]; as discussed
* above, byte-swap.
Home |
Main Index |
Thread Index |
Old Index