summaryrefslogtreecommitdiff
path: root/include/dfu.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-06-11 22:03:35 (GMT)
committerTom Rini <trini@ti.com>2014-08-09 15:16:59 (GMT)
commitcb7bd2e07e70aed7802e28619ce93d15d7ce10dc (patch)
tree148fe54e8893860c7c3054cdbb1bc84f1bddda5d /include/dfu.h
parent7ac1b410ac9b66150170718a6f807ce52ffd8400 (diff)
downloadu-boot-fsl-qoriq-cb7bd2e07e70aed7802e28619ce93d15d7ce10dc.tar.xz
dfu: add free_entity() to struct dfu_entity
This allows the backend to free any resources allocated during the relevant dfu_fill_entity_*() call. This will soon be used by the SF backend. Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include/dfu.h')
-rw-r--r--include/dfu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index d5562dc..43814b3 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -110,6 +110,8 @@ struct dfu_entity {
int (*flush_medium)(struct dfu_entity *dfu);
unsigned int (*poll_timeout)(struct dfu_entity *dfu);
+ void (*free_entity)(struct dfu_entity *dfu);
+
struct list_head list;
/* on the fly state */