Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic igpio(4): Use device_xname, not struct device mem...



details:   https://anonhg.NetBSD.org/src/rev/916b3ddbf130
branches:  trunk
changeset: 364473:916b3ddbf130
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 26 19:35:56 2022 +0000

description:
igpio(4): Use device_xname, not struct device members.

diffstat:

 sys/dev/ic/igpio.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9132bb0b86a4 -r 916b3ddbf130 sys/dev/ic/igpio.c
--- a/sys/dev/ic/igpio.c        Sat Mar 26 19:35:35 2022 +0000
+++ b/sys/dev/ic/igpio.c        Sat Mar 26 19:35:56 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: igpio.c,v 1.3 2022/03/26 19:35:35 riastradh Exp $ */
+/* $NetBSD: igpio.c,v 1.4 2022/03/26 19:35:56 riastradh Exp $ */
 
 /*
  * Copyright (c) 2021,2022 Emmanuel Dreyfus
@@ -724,7 +724,7 @@
     char *buf, size_t buflen)
 {
        struct igpio_softc *sc = priv;
-       const char *name = sc->sc_dev->dv_xname;
+       const char *name = device_xname(sc->sc_dev);
        int rv;
 
        rv = snprintf(buf, buflen, "%s pin %d", name, pin);



Home | Main Index | Thread Index | Old Index