]> git.dujemihanovic.xyz Git - u-boot.git/commit
dfu: add common function to initiate transaction
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 19 Jul 2017 14:39:25 +0000 (16:39 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:40 +0000 (23:34 +0200)
commit6fa8dddd069db868d64948e70c40f3d75a9fa253
tree0ad3819c55cac30b047d4214e199cd7227232f62
parent57da060755ac757237bd8781f7b2aef80167301e
dfu: add common function to initiate transaction

- factorize code between read and write transaction
- always use dfu_transaction_cleanup() to initialize
  the internal variable: easy maintenance
- replace direct access by dfu_get_buf() and dfu_get_buf_size()

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/dfu/dfu.c