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>
1 parent 3882976 commit ea3da394e0effa45569e99d0ba3496a496a0948b
@Andrey Smirnov Andrey Smirnov authored on 23 Aug 2018
Sascha Hauer committed on 31 Aug 2018
Showing 1 changed file
View
arch/arm/mach-imx/imx-bbu-internal.c