diff options
author | Joy Chakraborty <[email protected]> | 2024-06-12 08:08:31 +0000 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2024-06-28 00:20:20 +0200 |
commit | 70f1ae5f0e7f44edf842444044615da7b59838c1 (patch) | |
tree | 44c1107dc3c3f0d8a651ed241076629094cf9ff3 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | c88014c7aa5c4cd39c3a5f4830f6fb525c730693 (diff) |
rtc: isl1208: Fix return value of nvmem callbacks
Read/write callbacks registered with nvmem core expect 0 to be returned
on success and a negative value to be returned on failure.
isl1208_nvmem_read()/isl1208_nvmem_write() currently return the number of
bytes read/written on success, fix to return 0 on success and negative on
failure.
Fixes: c3544f6f51ed ("rtc: isl1208: Add new style nvmem support to driver")
Cc: [email protected]
Signed-off-by: Joy Chakraborty <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions