Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7e3c5f8 authored by Axel Lin's avatar Axel Lin Committed by Greg Kroah-Hartman
Browse files

nvmem: imx-ocotp: Fix return value of imx_ocotp_read



imx_ocotp_read() should return 0 on success.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5685e244
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)