diff options
author | Joy Chakraborty <[email protected]> | 2024-06-12 07:00:30 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-07-03 16:37:33 +0200 |
commit | a6a0f04e7d28378c181f76d32e4f965aa6a8b0a5 (patch) | |
tree | 98a8491dd2c13f9c4353a07a171c7b9244156c10 /scripts/generate_rust_analyzer.py | |
parent | 4e60131d0d36af65ab9c9144f4f163fe97ae36e8 (diff) |
misc: microchip: pci1xxxx: 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.
Currently pci1xxxx_otp_read()/pci1xxxx_otp_write() and
pci1xxxx_eeprom_read()/pci1xxxx_eeprom_write() return the number of
bytes read/written on success.
Fix to return 0 on success.
Fixes: 9ab5465349c0 ("misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX EEPROM via NVMEM sysfs")
Fixes: 0969001569e4 ("misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX OTP via NVMEM sysfs")
Cc: [email protected]
Signed-off-by: Joy Chakraborty <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions