mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
nvmem: imx-ocotp: Fix return value of imx_ocotp_read
imx_ocotp_read() should return 0 on success. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5685e24446
commit
c7e3c5f861
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ static int imx_ocotp_read(void *context, const void *reg, size_t reg_size,
|
|||
val += 4;
|
||||
}
|
||||
|
||||
return (i - index) * 4;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int imx_ocotp_write(void *context, const void *data, size_t count)
|
||||
|
|
|
|||
Loading…
Reference in a new issue