]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
blk: host_dev: Make host_sb_detach_file() and host_sb_ops static
authorBin Meng <bmeng@tinylab.org>
Tue, 26 Sep 2023 08:43:34 +0000 (16:43 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 10 Oct 2023 20:19:43 +0000 (16:19 -0400)
They are only used in drivers/block/host_dev.c.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/block/host_dev.c

index 31c7814054e45169fcbb9ce55fbbfadf0fc0c7d1..0b43f80a86431b61a7aa7c9341b432e0b2035fbc 100644 (file)
@@ -73,7 +73,7 @@ err_fname:
        return ret;
 }
 
-int host_sb_detach_file(struct udevice *dev)
+static int host_sb_detach_file(struct udevice *dev)
 {
        struct host_sb_plat *plat = dev_get_plat(dev);
        int ret;
@@ -123,7 +123,7 @@ static int host_sb_bind(struct udevice *dev)
        return 0;
 }
 
-struct host_ops host_sb_ops = {
+static struct host_ops host_sb_ops = {
        .attach_file    = host_sb_attach_file,
        .detach_file    = host_sb_detach_file,
 };