summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-isl12057.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rtc: isl12057: use PTR_ERR_OR_ZERO to fix coccinelle warningsFengguang Wu2014-02-181-4/+1
| | | | | | | | | | | | | drivers/rtc/rtc-isl12057.c:278:1-3: WARNING: PTR_RET can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci CC: Arnaud Ebalard <arno@natisbad.org> CC: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
* rtc: Add support for Intersil ISL12057 I2C RTC chipArnaud Ebalard2013-12-221-0/+310
Intersil ISL12057 is an I2C RTC chip also supporting two alarms. This patch only adds support for basic RTC functionalities (i.e. getting and setting time). Tests have been performed on NETGEAR ReadyNAS 102 w/ startup/shutdown scripts, hwclock, ntpdate and openntpd. Reviewed-by: Mark Brown <broonie@linaro.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Arnaud Ebalard <arno@natisbad.org> Signed-off-by: Jason Cooper <jason@lakedaemon.net>