* [PATCH] nvmem: imx-ocotp: Fix return value of imx_ocotp_read
@ 2016-02-02 13:29 Axel Lin
2016-02-08 8:31 ` Srinivas Kandagatla
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2016-02-02 13:29 UTC (permalink / raw
To: Srinivas Kandagatla, Maxime Ripard; +Cc: Philipp Zabel, linux-kernel
imx_ocotp_read() should return 0 on success.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
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)
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nvmem: imx-ocotp: Fix return value of imx_ocotp_read
2016-02-02 13:29 [PATCH] nvmem: imx-ocotp: Fix return value of imx_ocotp_read Axel Lin
@ 2016-02-08 8:31 ` Srinivas Kandagatla
0 siblings, 0 replies; 2+ messages in thread
From: Srinivas Kandagatla @ 2016-02-08 8:31 UTC (permalink / raw
To: Axel Lin, Maxime Ripard; +Cc: Philipp Zabel, linux-kernel
On 02/02/16 13:29, Axel Lin wrote:
> imx_ocotp_read() should return 0 on success.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
I will queue this patch via Greg's charmisc tree.
thanks,
srini
> 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)
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-08 8:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-02 13:29 [PATCH] nvmem: imx-ocotp: Fix return value of imx_ocotp_read Axel Lin
2016-02-08 8:31 ` Srinivas Kandagatla
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.