Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/thorpej-i2c-spi-conf]: src/sys/arch/macppc/dev ia->ia_cookie -> devhandl...



details:   https://anonhg.NetBSD.org/src/rev/9ad8409aae0c
branches:  thorpej-i2c-spi-conf
changeset: 983218:9ad8409aae0c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun May 09 22:36:35 2021 +0000

description:
ia->ia_cookie -> devhandle_to_of(device_handle(self))

diffstat:

 sys/arch/macppc/dev/deq.c    |  6 +++---
 sys/arch/macppc/dev/lmu.c    |  6 +++---
 sys/arch/macppc/dev/psoc.c   |  6 +++---
 sys/arch/macppc/dev/smusat.c |  2 +-
 4 files changed, 10 insertions(+), 10 deletions(-)

diffs (93 lines):

diff -r 4bdf72aa841a -r 9ad8409aae0c sys/arch/macppc/dev/deq.c
--- a/sys/arch/macppc/dev/deq.c Sun May 09 22:29:54 2021 +0000
+++ b/sys/arch/macppc/dev/deq.c Sun May 09 22:36:35 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: deq.c,v 1.20 2021/01/27 02:17:27 thorpej Exp $ */
+/*     $NetBSD: deq.c,v 1.20.4.1 2021/05/09 22:36:35 thorpej Exp $     */
 
 /*-
  * Copyright (C) 2005 Michael Lorenz
@@ -32,7 +32,7 @@
  */
  
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: deq.c,v 1.20 2021/01/27 02:17:27 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: deq.c,v 1.20.4.1 2021/05/09 22:36:35 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -83,7 +83,7 @@
        char name[256];
 
        sc->sc_dev = self;
-       sc->sc_node = ia->ia_cookie;
+       sc->sc_node = devhandle_to_of(device_handle(self));
        sc->sc_parent = parent;
        sc->sc_address = ia->ia_addr;
        sc->sc_i2c = ia->ia_tag;
diff -r 4bdf72aa841a -r 9ad8409aae0c sys/arch/macppc/dev/lmu.c
--- a/sys/arch/macppc/dev/lmu.c Sun May 09 22:29:54 2021 +0000
+++ b/sys/arch/macppc/dev/lmu.c Sun May 09 22:36:35 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lmu.c,v 1.8 2021/01/27 02:17:28 thorpej Exp $ */
+/* $NetBSD: lmu.c,v 1.8.4.1 2021/05/09 22:36:35 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2020 Michael Lorenz
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lmu.c,v 1.8 2021/01/27 02:17:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lmu.c,v 1.8.4.1 2021/05/09 22:36:35 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -166,7 +166,7 @@
        sc->sc_dev = self;
        sc->sc_i2c = ia->ia_tag;
        sc->sc_addr = ia->ia_addr;
-       sc->sc_node = ia->ia_cookie;
+       sc->sc_node = devhandle_to_of(device_handle(self));
        sc->sc_last = 0;
 
        aprint_naive("\n");
diff -r 4bdf72aa841a -r 9ad8409aae0c sys/arch/macppc/dev/psoc.c
--- a/sys/arch/macppc/dev/psoc.c        Sun May 09 22:29:54 2021 +0000
+++ b/sys/arch/macppc/dev/psoc.c        Sun May 09 22:36:35 2021 +0000
@@ -1,4 +1,4 @@
- /* $NetBSD: psoc.c,v 1.6 2021/01/27 02:17:28 thorpej Exp $ */
+ /* $NetBSD: psoc.c,v 1.6.4.1 2021/05/09 22:36:35 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2019 Michael Lorenz
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psoc.c,v 1.6 2021/01/27 02:17:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psoc.c,v 1.6.4.1 2021/05/09 22:36:35 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -109,7 +109,7 @@
        sc->sc_dev = self;
        sc->sc_i2c = ia->ia_tag;
        sc->sc_addr = ia->ia_addr;
-       sc->sc_node = ia->ia_cookie;
+       sc->sc_node = devhandle_to_of(device_handle(self));
        sc->sc_last = 0;
 
        aprint_naive("\n");
diff -r 4bdf72aa841a -r 9ad8409aae0c sys/arch/macppc/dev/smusat.c
--- a/sys/arch/macppc/dev/smusat.c      Sun May 09 22:29:54 2021 +0000
+++ b/sys/arch/macppc/dev/smusat.c      Sun May 09 22:36:35 2021 +0000
@@ -135,7 +135,7 @@
        int node, i, j;
 
        sc->sc_dev = self;
-       sc->sc_node = ia->ia_cookie;
+       sc->sc_node = devhandle_to_of(device_handle(self));
        sc->sc_addr = ia->ia_addr;
        sc->sc_i2c = ia->ia_tag;
 



Home | Main Index | Thread Index | Old Index