usb: dfu: add static alt num count in dfu_config_entities()
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Fri, 28 Feb 2014 17:53:37 +0000 (18:53 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 13 Mar 2014 01:30:56 +0000 (10:30 +0900)
commitb627eb461bb281a00b543e72e74edc197b5f7b5e
tree3e285ac246ca01beff7ed5b2d9929bcbfc1a7721
parent18f3e0eb4fa5964b0e916005148d8ffbe7694f69
usb: dfu: add static alt num count in dfu_config_entities()

Thanks to this multiple call of function dfu_config_entities()
gives continuous dfu alt numbering until call dfu_free_entities().

This allows to store dfu entities in multiple variables.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Ɓukasz Majewski <l.majewski@samsung.com>
Tested-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/dfu/dfu.c