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 register write location
details: https://anonhg.NetBSD.org/src/rev/49c62d8a848f
branches: trunk
changeset: 356469:49c62d8a848f
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Sep 28 13:08:00 2017 +0000
description:
Fix register write location
diffstat:
sys/dev/i2c/max77620.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6f708ca90acf -r 49c62d8a848f sys/dev/i2c/max77620.c
--- a/sys/dev/i2c/max77620.c Thu Sep 28 11:18:41 2017 +0000
+++ b/sys/dev/i2c/max77620.c Thu Sep 28 13:08:00 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: max77620.c,v 1.1 2017/09/22 18:12:31 jmcneill Exp $ */
+/* $NetBSD: max77620.c,v 1.2 2017/09/28 13:08:00 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: max77620.c,v 1.1 2017/09/22 18:12:31 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: max77620.c,v 1.2 2017/09/28 13:08:00 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -97,7 +97,7 @@
}
#define I2C_READ(sc, reg) max77620_read((sc), (reg), I2C_F_POLL)
-#define I2C_WRITE(sc, reg, val) max77620_write((sc), (reg) << 1, (val), I2C_F_POLL)
+#define I2C_WRITE(sc, reg, val) max77620_write((sc), (reg), (val), I2C_F_POLL)
#define I2C_LOCK(sc) iic_acquire_bus((sc)->sc_i2c, I2C_F_POLL)
#define I2C_UNLOCK(sc) iic_release_bus((sc)->sc_i2c, I2C_F_POLL)
Home |
Main Index |
Thread Index |
Old Index