Module Name: src
Committed By: jmcneill
Date: Sat Apr 29 12:49:05 UTC 2017
Modified Files:
src/sys/dev/fdt: fdtbus.c fdtvar.h
Log Message:
Rename fdt_print to fdtbus_print and make it public.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/fdt/fdtbus.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/fdt/fdtvar.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/fdt/fdtbus.c
diff -u src/sys/dev/fdt/fdtbus.c:1.11 src/sys/dev/fdt/fdtbus.c:1.12
--- src/sys/dev/fdt/fdtbus.c:1.11 Sat Apr 29 12:38:26 2017
+++ src/sys/dev/fdt/fdtbus.c Sat Apr 29 12:49:05 2017
@@ -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 <[email protected]>
@@ -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_scan(struct fdt_softc *,
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 @@ fdt_scan_bus(struct fdt_softc *sc)
/*
* 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 @@ fdt_scan(struct fdt_softc *sc, int pass)
* 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 @@ fdt_get_order(int phandle)
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];
Index: src/sys/dev/fdt/fdtvar.h
diff -u src/sys/dev/fdt/fdtvar.h:1.15 src/sys/dev/fdt/fdtvar.h:1.16
--- src/sys/dev/fdt/fdtvar.h:1.15 Sat Apr 29 12:38:26 2017
+++ src/sys/dev/fdt/fdtvar.h Sat Apr 29 12:49:05 2017
@@ -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 <[email protected]>
@@ -237,4 +237,6 @@ int fdtbus_get_stdout_speed(void);
bool fdtbus_status_okay(int);
+int fdtbus_print(void *, const char *);
+
#endif /* _DEV_FDT_FDTVAR_H */