diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-08-23 19:52:39 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-08-31 08:30:08 +0200 |
commit | ea3da394e0effa45569e99d0ba3496a496a0948b (patch) | |
tree | b01f2c97b64b0505e6b417fcfb58cf0cacd1bb20 /common/bbu.c | |
parent | 38829761d78eafb25309b5b3ba5ce85d91bf5ba3 (diff) | |
download | barebox-ea3da394e0effa45569e99d0ba3496a496a0948b.tar.gz barebox-ea3da394e0effa45569e99d0ba3496a496a0948b.tar.xz |
ARM: i.MX: bbu: Use pwrite_full() instead of pwrite()
Use pwrite_full() instead of pwrite() to make sure that all of the
data was written to target device. While at it adjust return value of
imx_bbu_write_device() to be zero in case of success.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/bbu.c')
0 files changed, 0 insertions, 0 deletions