summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeiko Schocher <[email protected]>2014-03-18 08:09:55 +0100
committerMarek Vasut <[email protected]>2014-03-23 02:20:09 +0100
commita2199afea169c1e13881ca90a02a28e4c9ffd114 (patch)
treee1659208cca3bededc225a383fe0cbe4c4710d53 /include
parent2c072c958bb544c72f0e848375803dbd6971f022 (diff)
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 <[email protected]> Cc: Lukasz Majewski <[email protected]> Cc: Kyungmin Park <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Pantelis Antoniou <[email protected]>
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 f973426aa90..272a245764a 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);