From cb7bd2e07e70aed7802e28619ce93d15d7ce10dc Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Wed, 11 Jun 2014 16:03:35 -0600 Subject: 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 --- include/dfu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/dfu.h') diff --git a/include/dfu.h b/include/dfu.h index d5562dcb37..43814b38ec 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 */ -- cgit v1.2.1