tools/env: lookup dev_type directly from flash_read_buf/flash_write_buf
authorAndreas Fenkart <andreas.fenkart@digitalstrom.com>
Mon, 29 Aug 2016 21:16:59 +0000 (23:16 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 7 Oct 2016 00:57:35 +0000 (20:57 -0400)
commitff95e579cf53b9d621e0754ea869a703eec6cdd1
tree55901d94bebc58f0a538ca02f41a1575754bde5a
parentc6012bbce6ce9ac3162aeb841b2502ba71e52af6
tools/env: lookup dev_type directly from flash_read_buf/flash_write_buf

flash_write_buf already looks up size/offset/#sector from struct
envdev_s. It can look up mtd_type as well. Same applies to
flash_read_buf. Makes the interface simpler

Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
tools/env/fw_env.c