projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5685e24
)
nvmem: imx-ocotp: Fix return value of imx_ocotp_read
author
Axel Lin
<axel.lin@ingics.com>
Mon, 22 Feb 2016 11:23:52 +0000
(11:23 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 5 Mar 2016 20:20:29 +0000
(12:20 -0800)
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>
drivers/nvmem/imx-ocotp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvmem/imx-ocotp.c
b/drivers/nvmem/imx-ocotp.c
index b7971d410b60ef5f203018490ffefe38b56cfa2d..d7796eb5421ff0d4c01a3dbc87f76a065bf5d5ee 100644
(file)
--- a/
drivers/nvmem/imx-ocotp.c
+++ b/
drivers/nvmem/imx-ocotp.c
@@
-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)