Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1339399
| From | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] nvmem: imx-ocotp: Fix return value of imx_ocotp_read |
| Date | 2016-02-22 12:30 +0100 |
| Message-ID | <r4WQH-51k-31@gated-at.bofh.it> (permalink) |
| References | <r4WQG-51k-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Axel Lin <axel.lin@ingics.com> 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> --- drivers/nvmem/imx-ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index b7971d4..d7796eb 100644 --- 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) -- 1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] nvmem: fixes for v4.6 Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-02-22 12:30 +0100 [PATCH 2/3] nvmem: imx-ocotp: Fix return value of imx_ocotp_read Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-02-22 12:30 +0100 [PATCH 1/3] nvmem: Fix dependencies for !HAS_IOMEM archs Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-02-22 12:30 +0100
csiph-web