diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-07-13 16:12:04 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2016-09-29 06:02:15 +0200 |
commit | a8faaffbaf8216c69fa7e20df7841d2f6dd0e905 (patch) | |
tree | df3d95de2c07e838ae54f0ea20ace3084dfcdb51 /drivers/hwmon | |
parent | 68ab0dc0c04b0e70854fa630993da83a5b785bcf (diff) |
tools/env: complete environment device config early
Currently flash_read completes a crucial part of the environment
device configuration, the device type (mtd_type). This is rather
confusing as flash_io calls flash_read conditionally, and one might
think flash_write, which also makes use of mtd_type, gets called
before flash_read. But since flash_io is always called with O_RDONLY
first, this is not actually the case in reality.
However, it is much cleaner to complete and verify the config early
in parse_config. This also prepares the code for further extension.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions