From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 31 Mar 2014 11:01:32 +0200 Subject: [U-Boot] [PATCH 2/3] dfu: add static alt num count in dfu_config_entities() In-Reply-To: <1396255729-6573-3-git-send-email-l.majewski@samsung.com> References: <1396255729-6573-1-git-send-email-l.majewski@samsung.com> <1396255729-6573-3-git-send-email-l.majewski@samsung.com> Message-ID: <201403311101.32638.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, March 31, 2014 at 10:48:48 AM, Lukasz Majewski wrote: > From: Przemyslaw Marczak > > Thanks to this multiple calls of function dfu_config_entities() give > continuous dfu alt numbering until call dfu_free_entities(). > > This allows to store dfu entities in multiple env variables. > > Change-Id: Ibca7e785bfca9f53b64d3dff0490185b06841b54 > Signed-off-by: Przemyslaw Marczak > --- > drivers/dfu/dfu.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c > index f94c412..e15f959 100644 > --- a/drivers/dfu/dfu.c > +++ b/drivers/dfu/dfu.c > @@ -19,6 +19,7 @@ > static bool dfu_reset_request; > static LIST_HEAD(dfu_list); > static int dfu_alt_num; > +static int alt_num_count; Can the variable name here be any less consistent with the rest ... ? ;-) [...] Best regards, Marek Vasut