Module Name: src Committed By: macallan Date: Fri May 4 17:15:23 UTC 2018
Modified Files: src/sys/arch/macppc/dev: deq.c Log Message: don't cut off upper bits in the i2c address, ki2c knows how to deal with them now To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/macppc/dev/deq.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/arch/macppc/dev/deq.c diff -u src/sys/arch/macppc/dev/deq.c:1.12 src/sys/arch/macppc/dev/deq.c:1.13 --- src/sys/arch/macppc/dev/deq.c:1.12 Wed Sep 27 22:31:53 2017 +++ src/sys/arch/macppc/dev/deq.c Fri May 4 17:15:23 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: deq.c,v 1.12 2017/09/27 22:31:53 macallan Exp $ */ +/* $NetBSD: deq.c,v 1.13 2018/05/04 17:15:23 macallan Exp $ */ /*- * Copyright (C) 2005 Michael Lorenz @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: deq.c,v 1.12 2017/09/27 22:31:53 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: deq.c,v 1.13 2018/05/04 17:15:23 macallan Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -87,7 +87,7 @@ deq_attach(device_t parent, device_t sel sc->sc_dev = self; sc->sc_node = ia->ia_cookie; sc->sc_parent = parent; - sc->sc_address = (ia->ia_addr & 0x7f); + sc->sc_address = ia->ia_addr; sc->sc_i2c = ia->ia_tag; if (OF_getprop(sc->sc_node, "compatible", name, 256) <= 0) { /* deq has no 'compatible' on my iBook G4 */