rockchip: resource: remove rockchip_get_resource_file_offset()

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I5c468d69640f223a78dcff1b11981a0d36f3ad8a
This commit is contained in:
Joseph Chen 2020-01-06 19:22:15 +08:00
parent cddfd2aeae
commit 6f3562b04c
2 changed files with 0 additions and 23 deletions

View File

@ -19,16 +19,6 @@
*/
int rockchip_read_resource_file(void *buf, const char *name, int offset, int len);
/*
* rockchip_get_resource_file_offset() - read file offset of partition
*
* @resc_img_hdr: resource file hdr
* @name: file name
*
* @return negative on error, otherwise file offset
*/
int rockchip_get_resource_file_offset(void *resc_hdr, const char *name);
/*
* rockchip_get_resource_file_size() - read file size
*

13
arch/arm/mach-rockchip/resource_img.c Executable file → Normal file
View File

@ -15,8 +15,6 @@
#include <sysmem.h>
#include <asm/io.h>
#include <asm/unaligned.h>
#include <android_avb/libavb_ab.h>
#include <android_avb/rk_avb_ops_user.h>
#include <dm/ofnode.h>
#include <linux/list.h>
#include <u-boot/sha1.h>
@ -539,17 +537,6 @@ static struct resource_file *get_file_info(struct resource_img_hdr *hdr,
return NULL;
}
int rockchip_get_resource_file_offset(void *resc_hdr, const char *name)
{
struct resource_file *file;
file = get_file_info(resc_hdr, name);
if (!file)
return -ENFILE;
return file->f_offset;
}
/*
* read file from resource partition
* @buf: destination buf to store file data;