Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Access byte2...
details: https://anonhg.NetBSD.org/src/rev/90bd1387cc82
branches: trunk
changeset: 1026573:90bd1387cc82
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Nov 30 05:02:29 2021 +0000
description:
Access byte2...
diffstat:
sys/dev/i2c/spdmem_i2c.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r b8d984671f12 -r 90bd1387cc82 sys/dev/i2c/spdmem_i2c.c
--- a/sys/dev/i2c/spdmem_i2c.c Tue Nov 30 01:52:06 2021 +0000
+++ b/sys/dev/i2c/spdmem_i2c.c Tue Nov 30 05:02:29 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem_i2c.c,v 1.22 2021/06/13 09:48:04 mlelstv Exp $ */
+/* $NetBSD: spdmem_i2c.c,v 1.23 2021/11/30 05:02:29 msaitoh Exp $ */
/*
* Copyright (c) 2007 Nicolas Joly
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.22 2021/06/13 09:48:04 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.23 2021/11/30 05:02:29 msaitoh Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -117,6 +117,7 @@
*/
rv = iic_exec(sc->sc_tag, I2C_OP_READ_WITH_STOP, sc->sc_addr, ®, 1,
&byte0, 1, 0);
+ reg = 2;
rv |= iic_exec(sc->sc_tag, I2C_OP_READ_WITH_STOP, sc->sc_addr, ®, 1,
&byte2, 1, 0);
if (rv != 0)
Home |
Main Index |
Thread Index |
Old Index