Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Rename fdt_print to fdtbus_print and make it pub...



details:   https://anonhg.NetBSD.org/src/rev/337c2a9da0e0
branches:  trunk
changeset: 823624:337c2a9da0e0
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Apr 29 12:49:05 2017 +0000

description:
Rename fdt_print to fdtbus_print and make it public.

diffstat:

 sys/dev/fdt/fdtbus.c |  14 ++++++--------
 sys/dev/fdt/fdtvar.h |   4 +++-
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (72 lines):

diff -r 161204635474 -r 337c2a9da0e0 sys/dev/fdt/fdtbus.c
--- a/sys/dev/fdt/fdtbus.c      Sat Apr 29 12:38:26 2017 +0000
+++ b/sys/dev/fdt/fdtbus.c      Sat Apr 29 12:49:05 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdtbus.c,v 1.11 2017/04/29 12:38:26 jmcneill Exp $ */
+/* $NetBSD: fdtbus.c,v 1.12 2017/04/29 12:49:05 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdtbus.c,v 1.11 2017/04/29 12:38:26 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdtbus.c,v 1.12 2017/04/29 12:49:05 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -72,8 +72,6 @@
 static void    fdt_add_node(struct fdt_node *);
 static u_int   fdt_get_order(int);
 
-static int     fdt_print(void *, const char *);
-
 static const char * const fdtbus_compatible[] =
     { "simple-bus", NULL };
 
@@ -203,7 +201,7 @@
                /*
                 * Attach the bus.
                 */
-               node->n_dev = config_found(node->n_bus, &faa, fdt_print);
+               node->n_dev = config_found(node->n_bus, &faa, fdtbus_print);
        }
 }
 
@@ -237,7 +235,7 @@
                 * Attach the device.
                 */
                node->n_dev = config_found_sm_loc(node->n_bus, "fdt", locs,
-                   &faa, fdt_print, fdt_scan_submatch);
+                   &faa, fdtbus_print, fdt_scan_submatch);
        }
 }
 
@@ -271,8 +269,8 @@
        return val;
 }
 
-static int
-fdt_print(void *aux, const char *pnp)
+int
+fdtbus_print(void *aux, const char *pnp)
 {
        const struct fdt_attach_args * const faa = aux;
        char buf[FDT_MAX_PATH];
diff -r 161204635474 -r 337c2a9da0e0 sys/dev/fdt/fdtvar.h
--- a/sys/dev/fdt/fdtvar.h      Sat Apr 29 12:38:26 2017 +0000
+++ b/sys/dev/fdt/fdtvar.h      Sat Apr 29 12:49:05 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdtvar.h,v 1.15 2017/04/29 12:38:26 jmcneill Exp $ */
+/* $NetBSD: fdtvar.h,v 1.16 2017/04/29 12:49:05 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -237,4 +237,6 @@
 
 bool           fdtbus_status_okay(int);
 
+int            fdtbus_print(void *, const char *);
+
 #endif /* _DEV_FDT_FDTVAR_H */



Home | Main Index | Thread Index | Old Index