Commit 70f1ae5
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: c3544f6 ("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]>1 parent c88014c commit 70f1ae5
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
778 | | - | |
779 | 778 | | |
780 | 779 | | |
781 | 780 | | |
782 | 781 | | |
783 | | - | |
| 782 | + | |
| 783 | + | |
784 | 784 | | |
785 | | - | |
786 | 785 | | |
787 | 786 | | |
788 | 787 | | |
789 | 788 | | |
790 | 789 | | |
791 | 790 | | |
792 | 791 | | |
793 | | - | |
794 | 792 | | |
795 | 793 | | |
796 | 794 | | |
797 | 795 | | |
798 | | - | |
799 | | - | |
800 | 796 | | |
801 | | - | |
| 797 | + | |
| 798 | + | |
802 | 799 | | |
803 | 800 | | |
804 | 801 | | |
| |||
0 commit comments