Source-Changes-HG archive

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

[src/trunk]: src/sys Rename fdtbus_set_data() to fdtbus_init(). NFC.



details:   https://anonhg.NetBSD.org/src/rev/8a4748bf274a
branches:  trunk
changeset: 848974:8a4748bf274a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Feb 16 14:56:52 2020 +0000

description:
Rename fdtbus_set_data() to fdtbus_init().  NFC.

diffstat:

 sys/arch/evbarm/fdt/fdt_machdep.c |  6 +++---
 sys/dev/fdt/fdt_subr.c            |  6 +++---
 sys/dev/fdt/fdtvar.h              |  4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 2518d32241a6 -r 8a4748bf274a sys/arch/evbarm/fdt/fdt_machdep.c
--- a/sys/arch/evbarm/fdt/fdt_machdep.c Sun Feb 16 14:06:10 2020 +0000
+++ b/sys/arch/evbarm/fdt/fdt_machdep.c Sun Feb 16 14:56:52 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_machdep.c,v 1.66 2020/01/21 10:54:11 jmcneill Exp $ */
+/* $NetBSD: fdt_machdep.c,v 1.67 2020/02/16 14:56:52 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.66 2020/01/21 10:54:11 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.67 2020/02/16 14:56:52 thorpej Exp $");
 
 #include "opt_machdep.h"
 #include "opt_bootconfig.h"
@@ -494,7 +494,7 @@
                error = fdt_open_into(fdt_addr_r, fdt_data, sizeof(fdt_data));
                if (error != 0)
                        panic("fdt_move failed: %s", fdt_strerror(error));
-               fdtbus_set_data(fdt_data);
+               fdtbus_init(fdt_data);
        } else {
                panic("fdt_check_header failed: %s", fdt_strerror(error));
        }
diff -r 2518d32241a6 -r 8a4748bf274a sys/dev/fdt/fdt_subr.c
--- a/sys/dev/fdt/fdt_subr.c    Sun Feb 16 14:06:10 2020 +0000
+++ b/sys/dev/fdt/fdt_subr.c    Sun Feb 16 14:56:52 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_subr.c,v 1.31 2019/09/24 15:23:34 jmcneill Exp $ */
+/* $NetBSD: fdt_subr.c,v 1.32 2020/02/16 14:56:52 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.31 2019/09/24 15:23:34 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_subr.c,v 1.32 2020/02/16 14:56:52 thorpej Exp $");
 
 #include "opt_fdt.h"
 
@@ -43,7 +43,7 @@
     TAILQ_HEAD_INITIALIZER(fdt_console_list);
 
 bool
-fdtbus_set_data(const void *data)
+fdtbus_init(const void *data)
 {
        KASSERT(fdt_data == NULL);
        if (fdt_check_header(data) != 0) {
diff -r 2518d32241a6 -r 8a4748bf274a sys/dev/fdt/fdtvar.h
--- a/sys/dev/fdt/fdtvar.h      Sun Feb 16 14:06:10 2020 +0000
+++ b/sys/dev/fdt/fdtvar.h      Sun Feb 16 14:56:52 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdtvar.h,v 1.57 2019/11/09 23:28:26 jmcneill Exp $ */
+/* $NetBSD: fdtvar.h,v 1.58 2020/02/16 14:56:52 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -396,7 +396,7 @@
 device_t       fdtbus_attach_i2cbus(device_t, int, i2c_tag_t, cfprint_t);
 device_t       fdtbus_attach_spibus(device_t, int, cfprint_t);
 
-bool           fdtbus_set_data(const void *);
+bool           fdtbus_init(const void *);
 const void *   fdtbus_get_data(void);
 int            fdtbus_phandle2offset(int);
 int            fdtbus_offset2phandle(int);



Home | Main Index | Thread Index | Old Index