summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2014-03-18 08:09:55 +0100
committerMarek Vasut <marex@denx.de>2014-03-23 02:20:09 +0100
commita2199afea169c1e13881ca90a02a28e4c9ffd114 (patch)
treee1659208cca3bededc225a383fe0cbe4c4710d53 /include
parent2c072c958bb544c72f0e848375803dbd6971f022 (diff)
downloadtalos-obmc-uboot-a2199afea169c1e13881ca90a02a28e4c9ffd114.tar.gz
talos-obmc-uboot-a2199afea169c1e13881ca90a02a28e4c9ffd114.zip
usb, dfu: extract flush code into seperate function
move the flushing code into an extra function dfu_flush(), so it can be used from other code. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Marek Vasut <marex@denx.de> Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'include')
-rw-r--r--include/dfu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index f973426aa9..272a245764 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -138,6 +138,7 @@ unsigned long dfu_get_buf_size(void);
int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
int dfu_write(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
+int dfu_flush(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
/* Device specific */
#ifdef CONFIG_DFU_MMC
extern int dfu_fill_entity_mmc(struct dfu_entity *dfu, char *s);
OpenPOWER on IntegriCloud