android_kernel_motorola_sm6375/drivers/nvmem
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Joy Chakraborty 427524ff30 nvmem: meson-efuse: Fix return value of nvmem callbacks
commit 7a0a6d0a7c805f9380381f4deedffdf87b93f408 upstream.

Read/write callbacks registered with nvmem core expect 0 to be returned
on success and a negative value to be returned on failure.

meson_efuse_read() and meson_efuse_write() call into
meson_sm_call_read() and meson_sm_call_write() respectively which return
the number of bytes read or written on success as per their api
description.

Fix to return error if meson_sm_call_read()/meson_sm_call_write()
returns an error else return 0.

Fixes: a29a63bdaf ("nvmem: meson-efuse: simplify read callback")
Cc: [email protected]
Signed-off-by: Joy Chakraborty <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2024-07-18 11:40:55 +02:00
..
bcm-ocotp.c
core.c
imx-iim.c
imx-ocotp-scu.c
imx-ocotp.c nvmem: imx: correct nregs for i.MX6UL 2023-11-08 11:23:37 +01:00
Kconfig
lpc18xx_eeprom.c
lpc18xx_otp.c
Makefile
meson-efuse.c nvmem: meson-efuse: Fix return value of nvmem callbacks 2024-07-18 11:40:55 +02:00
meson-mx-efuse.c
mtk-efuse.c
mxs-ocotp.c
nvmem-sysfs.c
nvmem.h
qfprom.c
rave-sp-eeprom.c
rockchip-efuse.c
sc27xx-efuse.c
snvs_lpgpr.c
stm32-romem.c
sunxi_sid.c
uniphier-efuse.c
vf610-ocotp.c
zynqmp_nvmem.c