Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1328820

Re: [PATCH] nvmem: imx-ocotp: Fix return value of imx_ocotp_read

From Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] nvmem: imx-ocotp: Fix return value of imx_ocotp_read
Date 2016-02-08 09:40 +0100
Message-ID <qZPwu-2Hf-7@gated-at.bofh.it> (permalink)
References <qXJbS-3xo-49@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



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)
>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] nvmem: imx-ocotp: Fix return value of imx_ocotp_read Axel Lin <axel.lin@ingics.com> - 2016-02-02 14:30 +0100
  Re: [PATCH] nvmem: imx-ocotp: Fix return value of imx_ocotp_read Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-02-08 09:40 +0100

csiph-web