Module Name: src
Committed By: jmcneill
Date: Thu Sep 28 13:08:00 UTC 2017
Modified Files:
src/sys/dev/i2c: max77620.c
Log Message:
Fix register write location
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/max77620.c
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/i2c/max77620.c
diff -u src/sys/dev/i2c/max77620.c:1.1 src/sys/dev/i2c/max77620.c:1.2
--- src/sys/dev/i2c/max77620.c:1.1 Fri Sep 22 18:12:31 2017
+++ src/sys/dev/i2c/max77620.c Thu Sep 28 13:08:00 2017
@@ -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 <[email protected]>
@@ -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 @@ max77620_write(struct max77620_softc *sc
}
#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)