summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-sc27xx.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-10-22 10:04:51 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-10-27 14:23:23 +0300
commitba1c30bf3f2536f248d262c6f257b5a787305991 (patch)
treed0d76ad1366fbfbbdc14f50083419de18bb11505 /drivers/rtc/rtc-sc27xx.c
parent5d78533a0c53af9659227c803df944ba27cd56e0 (diff)
downloadlinux-ba1c30bf3f2536f248d262c6f257b5a787305991.tar.xz
rtc: pcf2127: fix pcf2127_nvmem_read/write() returns
These functions should return zero on success. Non-zero returns are treated as error. On some paths, this doesn't matter but in nvmem_cell_read() a non-zero return would be passed to ERR_PTR() and lead to an Oops. Fixes: d6c3029f32f7 ("rtc: pcf2127: add support for accessing internal static RAM") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20201022070451.GA2817669@mwanda
Diffstat (limited to 'drivers/rtc/rtc-sc27xx.c')
0 files changed, 0 insertions, 0 deletions