lkml.org 
[lkml]   [2015]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rtc-linux] [PATCH] driver: rtc: use rtc_valid_tm() error code when reading date/time
On 16/06/2015 at 11:35:19 +0200, rnd4@dave-tech.it wrote :
> From: Andrea Scian <andrea.scian@dave.eu>
>
> There's a wrong commend in some RTC driver that say it's better to ignore
> rtc_valid_tm() when reading RTC timestamp. However this is wrong and is
> better to return to the userspace the an error if timestamp is not valid.
>
> Signed-off-by: Andrea Scian <andrea.scian@dave.eu>
> ---
> drivers/rtc/rtc-isl12022.c | 7 +------
> drivers/rtc/rtc-pcf2123.c | 8 +-------
> drivers/rtc/rtc-pcf2127.c | 8 +-------
> drivers/rtc/rtc-pcf8563.c | 8 +-------
> 4 files changed, 4 insertions(+), 27 deletions(-)
>

Applied, after dropping the pcf8563 part as it was part of another
patch.


--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


\
 
 \ /
  Last update: 2015-07-20 00:21    [W:0.054 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site