aboutsummaryrefslogtreecommitdiff
path: root/drivers/dfu
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2013-10-08 14:30:39 +0200
committerMarek Vasut <marex@denx.de>2013-10-20 23:42:40 +0200
commitd42782631d59ea12251629bb827f725ef4dfddf6 (patch)
treebc85a437493ded268745a43842f7208a8d73521e /drivers/dfu
parentfed936ed8004dd4972777aa29d882b7e88c6da7b (diff)
downloadu-boot-d42782631d59ea12251629bb827f725ef4dfddf6.zip
u-boot-d42782631d59ea12251629bb827f725ef4dfddf6.tar.gz
u-boot-d42782631d59ea12251629bb827f725ef4dfddf6.tar.bz2
dfu:core: Export dfu_{get|free}_buf functions
Define the dfu_get_buf() and dfu_free_buf() as global functions. They are necessary for zero copy buffer management, when DFU backend is used for storing data. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/dfu')
-rw-r--r--drivers/dfu/dfu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
index 4ec330c..4a8804e 100644
--- a/drivers/dfu/dfu.c
+++ b/drivers/dfu/dfu.c
@@ -67,14 +67,14 @@ int dfu_init_env_entities(char *interface, int dev)
static unsigned char *dfu_buf;
static unsigned long dfu_buf_size = CONFIG_SYS_DFU_DATA_BUF_SIZE;
-static unsigned char *dfu_free_buf(void)
+unsigned char *dfu_free_buf(void)
{
free(dfu_buf);
dfu_buf = NULL;
return dfu_buf;
}
-static unsigned char *dfu_get_buf(void)
+unsigned char *dfu_get_buf(void)
{
char *s;