From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.free-electrons.com (down.free-electrons.com. [37.187.137.238]) by gmr-mx.google.com with ESMTP id go9si221432wib.3.2015.10.17.17.14.29 for ; Sat, 17 Oct 2015 17:14:29 -0700 (PDT) Date: Sun, 18 Oct 2015 02:14:28 +0200 From: Alexandre Belloni To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Alessandro Zummo , rtc-linux@googlegroups.com, kernel@pengutronix.de, Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [rtc-linux] Re: [PATCH v1 1/4] rtc: pcf2127: fix reading uninitialized value on RTC_READ_VL ioctl Message-ID: <20151018001428.GV3421@piout.net> References: <1443777442-15920-1-git-send-email-u.kleine-koenig@pengutronix.de> <1443777442-15920-2-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <1443777442-15920-2-git-send-email-u.kleine-koenig@pengutronix.de> Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , On 02/10/2015 at 11:17:19 +0200, Uwe Kleine-K=C3=B6nig wrote : > 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). >=20 > 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. >=20 > Signed-off-by: Uwe Kleine-K=C3=B6nig Applied, thanks. --=20 Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --=20 --=20 You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. ---=20 You received this message because you are subscribed to the Google Groups "= rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.