diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2013-12-09 15:20:13 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-12-18 18:53:19 (GMT) |
commit | 4fb127898e46f0adf9fcca3cfae0987975ef34ec (patch) | |
tree | ab7edd49af2d99a0ef1322cb938315f31d72de7d /drivers/dfu/dfu.c | |
parent | f3bf212abc4139f12b472e97c1992ab32671b609 (diff) | |
download | u-boot-4fb127898e46f0adf9fcca3cfae0987975ef34ec.tar.xz |
dfu: Export allocated dfu buffer size
The method for exporting size of allocated buffer is provided.
It is afterwards used by USB's dfu function code.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/dfu/dfu.c')
-rw-r--r-- | drivers/dfu/dfu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 1eb92e5..07011e9 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -74,6 +74,11 @@ unsigned char *dfu_free_buf(void) return dfu_buf; } +unsigned long dfu_get_buf_size(void) +{ + return dfu_buf_size; +} + unsigned char *dfu_get_buf(void) { char *s; |