]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: rename functions lcd_dt_simplefb to fdt_simplefb
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 15 Nov 2021 15:32:19 +0000 (16:32 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Nov 2021 15:43:28 +0000 (16:43 +0100)
Rename the function named lcd_dt_simplefb* to fdt_simplefb* to be aligned
with the associated file name fdt_simplefb.h/fdt_simplefb.c

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
board/raspberrypi/rpi/rpi.c
common/fdt_simplefb.c
include/fdt_simplefb.h

index 55afaa54d9f31bfe996c78570fe79baf6c04a4bd..cd7d6df2a5c86c776a891dce5a0033237f47f9fb 100644 (file)
@@ -505,7 +505,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 
        node = fdt_node_offset_by_compatible(blob, -1, "simple-framebuffer");
        if (node < 0)
-               lcd_dt_simplefb_add_node(blob);
+               fdt_simplefb_add_node(blob);
 
 #ifdef CONFIG_EFI_LOADER
        /* Reserve the spin table */
index 1650615cdb9f0494b70a4d9df2c7c08c0c16040f..32173030ab74602bb5739fa121fb6c32251871b4 100644 (file)
@@ -16,7 +16,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static int lcd_dt_simplefb_configure_node(void *blob, int off)
+static int fdt_simplefb_configure_node(void *blob, int off)
 {
        int xsize, ysize;
        int bpix; /* log2 of bits per pixel */
@@ -58,7 +58,7 @@ static int lcd_dt_simplefb_configure_node(void *blob, int off)
                                       xsize * (1 << bpix) / 8, name);
 }
 
-int lcd_dt_simplefb_add_node(void *blob)
+int fdt_simplefb_add_node(void *blob)
 {
        static const char compat[] = "simple-framebuffer";
        static const char disabled[] = "disabled";
@@ -76,10 +76,10 @@ int lcd_dt_simplefb_add_node(void *blob)
        if (ret < 0)
                return -1;
 
-       return lcd_dt_simplefb_configure_node(blob, off);
+       return fdt_simplefb_configure_node(blob, off);
 }
 
-int lcd_dt_simplefb_enable_existing_node(void *blob)
+int fdt_simplefb_enable_existing_node(void *blob)
 {
        int off;
 
@@ -87,5 +87,5 @@ int lcd_dt_simplefb_enable_existing_node(void *blob)
        if (off < 0)
                return -1;
 
-       return lcd_dt_simplefb_configure_node(blob, off);
+       return fdt_simplefb_configure_node(blob, off);
 }
index 7cc305e1fd5efb8afc1dbb9ffa4641f5e1ac0e2f..7e5472359127408df34c55232cf48eeb3388a6c6 100644 (file)
@@ -8,6 +8,6 @@
 
 #ifndef _FDT_SIMPLEFB_H_
 #define _FDT_SIMPLEFB_H_
-int lcd_dt_simplefb_add_node(void *blob);
-int lcd_dt_simplefb_enable_existing_node(void *blob);
+int fdt_simplefb_add_node(void *blob);
+int fdt_simplefb_enable_existing_node(void *blob);
 #endif