linux/drivers/rtc
Joy Chakraborty 1c184baccf rtc: cmos: 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.

cmos_nvram_read()/cmos_nvram_write() currently return the number of
bytes read or written, fix to return 0 on success and -EIO incase number
of bytes requested was not read or written.

Fixes: 8b5b7958fd ("rtc: cmos: use generic nvmem")
Cc: stable@vger.kernel.org
Signed-off-by: Joy Chakraborty <joychakr@google.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240612083635.1253039-1-joychakr@google.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2024-06-28 00:21:06 +02:00
..
class.c rtc: class: make rtc_class constant 2024-03-08 12:05:10 +01:00
dev.c
interface.c rtc: class: make rtc_class constant 2024-03-08 12:05:10 +01:00
Kconfig rtc: Add driver for Epson RX8111 2024-04-17 01:45:33 +02:00
lib_test.c rtc: test: Split rtc unit test into slow and normal speed test 2024-03-29 15:58:45 +01:00
lib.c
Makefile rtc: Add driver for Epson RX8111 2024-04-17 01:45:33 +02:00
nvmem.c
proc.c
rtc-88pm80x.c
rtc-88pm860x.c
rtc-ab8500.c
rtc-ab-b5ze-s3.c
rtc-ab-eoz9.c
rtc-abx80x.c
rtc-ac100.c
rtc-armada38x.c
rtc-as3722.c
rtc-asm9260.c
rtc-aspeed.c
rtc-at91rm9200.c
rtc-at91sam9.c
rtc-au1xxx.c
rtc-bd70528.c
rtc-bq32k.c
rtc-bq4802.c
rtc-brcmstb-waketimer.c
rtc-cadence.c
rtc-cmos.c rtc: cmos: Fix return value of nvmem callbacks 2024-06-28 00:21:06 +02:00
rtc-core.h
rtc-cpcap.c
rtc-cros-ec.c rtc: cros-ec: provide ID table for avoiding fallback match 2024-03-29 15:46:08 +01:00
rtc-da9052.c
rtc-da9055.c
rtc-da9063.c rtc: da9063: Use dev_err_probe() 2024-01-18 01:00:21 +01:00
rtc-digicolor.c
rtc-ds1216.c
rtc-ds1286.c
rtc-ds1302.c
rtc-ds1305.c
rtc-ds1307.c
rtc-ds1343.c
rtc-ds1347.c
rtc-ds1374.c
rtc-ds1390.c
rtc-ds1511.c rtc: ds1511: set alarm offset limit 2024-02-29 22:16:52 +01:00
rtc-ds1553.c
rtc-ds1672.c
rtc-ds1685.c
rtc-ds1742.c
rtc-ds2404.c
rtc-ds3232.c
rtc-efi.c
rtc-em3027.c
rtc-ep93xx.c
rtc-fm3130.c
rtc-fsl-ftm-alarm.c
rtc-ftrtc010.c
rtc-gamecube.c
rtc-generic.c
rtc-goldfish.c
rtc-hid-sensor-time.c
rtc-hym8563.c
rtc-imx-sc.c
rtc-imxdi.c
rtc-isl1208.c rtc: isl1208: Fix return value of nvmem callbacks 2024-06-28 00:20:20 +02:00
rtc-isl12022.c
rtc-isl12026.c
rtc-jz4740.c
rtc-loongson.c
rtc-lp8788.c
rtc-lpc24xx.c
rtc-lpc32xx.c
rtc-m41t80.c rtc: m41t80: Use the unified property API get the wakeup-source property 2024-02-29 22:28:19 +01:00
rtc-m41t93.c
rtc-m41t94.c
rtc-m48t35.c
rtc-m48t59.c
rtc-m48t86.c
rtc-ma35d1.c
rtc-max6900.c
rtc-max6902.c
rtc-max6916.c
rtc-max8907.c
rtc-max8925.c
rtc-max8997.c
rtc-max8998.c
rtc-max31335.c rtc: max31335: fix interrupt status reg 2024-02-29 22:40:33 +01:00
rtc-max77686.c
rtc-mc13xxx.c
rtc-mc146818-lib.c
rtc-mcp795.c rtc: mcp795: drop unneeded MODULE_ALIAS 2024-04-17 01:39:35 +02:00
rtc-meson-vrtc.c
rtc-meson.c
rtc-moxart.c
rtc-mpc5121.c
rtc-mpfs.c
rtc-msc313.c
rtc-msm6242.c
rtc-mt2712.c
rtc-mt6397.c
rtc-mt7622.c
rtc-mv.c
rtc-mxc_v2.c
rtc-mxc.c
rtc-nct3018y.c rtc: nuvoton: Modify part number value 2024-03-29 15:59:02 +01:00
rtc-ntxec.c
rtc-nxp-bbnsm.c
rtc-omap.c
rtc-opal.c
rtc-optee.c
rtc-palmas.c
rtc-pcap.c
rtc-pcf2123.c
rtc-pcf2127.c
rtc-pcf8523.c rtc: pcf8523: add suspend handlers for alarm IRQ 2024-02-29 22:17:23 +01:00
rtc-pcf8563.c pcf8563: add wakeup-source support 2024-05-07 23:40:46 +02:00
rtc-pcf8583.c
rtc-pcf50633.c
rtc-pcf85063.c
rtc-pcf85363.c
rtc-pic32.c
rtc-pl030.c
rtc-pl031.c
rtc-pm8xxx.c
rtc-ps3.c
rtc-pxa.c
rtc-r7301.c
rtc-r9701.c
rtc-rc5t583.c
rtc-rc5t619.c
rtc-rk808.c
rtc-rp5c01.c
rtc-rs5c313.c
rtc-rs5c348.c
rtc-rs5c372.c
rtc-rtd119x.c
rtc-rv3028.c
rtc-rv3029c2.c
rtc-rv3032.c
rtc-rv8803.c
rtc-rx4581.c
rtc-rx6110.c rtc: rx6110: Constify struct regmap_config 2024-05-07 23:39:19 +02:00
rtc-rx8010.c
rtc-rx8025.c
rtc-rx8111.c rtc: rx8111: handle VLOW flag 2024-05-07 23:40:10 +02:00
rtc-rx8581.c
rtc-rzn1.c
rtc-s3c.c
rtc-s3c.h
rtc-s5m.c
rtc-s35390a.c
rtc-sa1100.c
rtc-sa1100.h
rtc-sc27xx.c
rtc-sd3078.c
rtc-sh.c
rtc-snvs.c
rtc-spear.c
rtc-ssd202d.c
rtc-st-lpc.c
rtc-starfire.c
rtc-stk17ta8.c
rtc-stm32.c
rtc-stmp3xxx.c
rtc-sun4v.c
rtc-sun6i.c
rtc-sunplus.c
rtc-sunxi.c
rtc-tegra.c
rtc-test.c
rtc-ti-k3.c
rtc-tps6586x.c
rtc-tps6594.c rtc: tps6594: Add power management support 2024-06-28 00:18:55 +02:00
rtc-tps65910.c
rtc-twl.c
rtc-vt8500.c
rtc-wilco-ec.c
rtc-wm831x.c
rtc-wm8350.c
rtc-x1205.c
rtc-xgene.c
rtc-zynqmp.c
sysfs.c