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 silly mistake in rev 1.12.
details: https://anonhg.NetBSD.org/src/rev/db9b0bb23da5
branches: trunk
changeset: 968357:db9b0bb23da5
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Jan 13 12:53:46 2020 +0000
description:
Fix silly mistake in rev 1.12.
diffstat:
sys/dev/i2c/gttwsi_core.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 551675e8d763 -r db9b0bb23da5 sys/dev/i2c/gttwsi_core.c
--- a/sys/dev/i2c/gttwsi_core.c Mon Jan 13 12:03:41 2020 +0000
+++ b/sys/dev/i2c/gttwsi_core.c Mon Jan 13 12:53:46 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gttwsi_core.c,v 1.14 2020/01/13 09:53:54 martin Exp $ */
+/* $NetBSD: gttwsi_core.c,v 1.15 2020/01/13 12:53:46 thorpej Exp $ */
/*
* Copyright (c) 2008 Eiji Kawauchi.
* All rights reserved.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gttwsi_core.c,v 1.14 2020/01/13 09:53:54 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gttwsi_core.c,v 1.15 2020/01/13 12:53:46 thorpej Exp $");
#include "locators.h"
#include <sys/param.h>
@@ -109,7 +109,7 @@
gttwsi_write_4(struct gttwsi_softc *sc, uint32_t reg, uint32_t val)
{
- bus_space_write_4(sc->sc_bust, sc->sc_bush, reg, val);
+ bus_space_write_4(sc->sc_bust, sc->sc_bush, sc->sc_regmap[reg], val);
#ifdef TWSI_DEBUG
printf("I2C:W:[%" PRIu32 "]%02" PRIxBUSSIZE ":%02" PRIx32 "\n", reg, sc->sc_regmap[reg], val);
#else
Home |
Main Index |
Thread Index |
Old Index