rtc: pcf2127: fix reading uninitialized value on RTC_READ_VL ioctl
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 2 Oct 2015 09:17:19 +0000 (11:17 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 8 Nov 2015 13:12:27 +0000 (14:12 +0100)
commitf97cfddc886bc8f9d4302447f8773239bed854c1
tree7a616bc4375f23432347448790baa4a6ead0fdf3
parent24417829936d82b03b156e0d036c3b8f25aa93fd
rtc: pcf2127: fix reading uninitialized value on RTC_READ_VL ioctl

The flag reported on the RTC_READ_VL ioctl is only initialized when the
date is read out. So the voltage low value doesn't represent reality but
the status at the time the date was read (or 0 if the date was not read
yet).

Moreover when userspace requests a value via an ioctl there is no added
benefit to also make a prosa representation of this (and other) values
appear in the kernel log so remove the calls to dev_info and the driver
data members to track their state.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pcf2127.c
This page took 0.028577 seconds and 5 git commands to generate.