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

Commit a29a63bd authored by Jerome Brunet's avatar Jerome Brunet Committed by Greg Kroah-Hartman
Browse files

nvmem: meson-efuse: simplify read callback



Most of the code and variables in the read callback is not necessary.
Keep only what is required.

Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 401488d1
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -24,15 +24,8 @@
static int meson_efuse_read(void *context, unsigned int offset,
			    void *val, size_t bytes)
{
	u8 *buf = val;
	int ret;

	ret = meson_sm_call_read(buf, bytes, SM_EFUSE_READ, offset,
	return meson_sm_call_read((u8 *)val, bytes, SM_EFUSE_READ, offset,
				  bytes, 0, 0, 0);
	if (ret < 0)
		return ret;

	return 0;
}

static const struct of_device_id meson_efuse_match[] = {