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:
parent
cddfd2aeae
commit
6f3562b04c
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue