]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: static fdt_simplefb_enable_existing_node()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 3 Apr 2023 18:46:50 +0000 (20:46 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Apr 2023 17:30:17 +0000 (11:30 -0600)
Function fdt_simplefb_enable_existing_node() should be static as it is not
used outside common/fdt_simplefb.c.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/fdt_simplefb.c
include/fdt_simplefb.h

index 282c34fe0b9c86257fa728490f1633454801cee5..069ced75a7f8106d2fbbc51d431796ef81655749 100644 (file)
@@ -71,7 +71,13 @@ int fdt_simplefb_add_node(void *blob)
        return fdt_simplefb_configure_node(blob, off);
 }
 
-int fdt_simplefb_enable_existing_node(void *blob)
+/**
+ * fdt_simplefb_enable_existing_node() - enable simple-framebuffer DT node
+ *
+ * @blob:      device-tree
+ * Return:     0 on success, non-zero otherwise
+ */
+static int fdt_simplefb_enable_existing_node(void *blob)
 {
        int off;
 
index 41cd740ac05731bea67185dbb1f0f2fc4860170b..af93e3be631d1eb0e4d39a12d9beed492dbf7e10 100644 (file)
@@ -9,6 +9,5 @@
 #ifndef _FDT_SIMPLEFB_H_
 #define _FDT_SIMPLEFB_H_
 int fdt_simplefb_add_node(void *blob);
-int fdt_simplefb_enable_existing_node(void *blob);
 int fdt_simplefb_enable_and_mem_rsv(void *blob);
 #endif