Received: by 10.223.185.116 with SMTP id b49csp1154336wrg; Wed, 21 Feb 2018 13:05:59 -0800 (PST) X-Google-Smtp-Source: AH8x227Y0DmuEPHV0Kr8v1H1zERlILEVuEiYlwW8MWRDPWngJ3WD1EyAv6M5ok5V+5/7DMyrNhO2 X-Received: by 10.98.159.85 with SMTP id g82mr2216267pfe.15.1519247158999; Wed, 21 Feb 2018 13:05:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519247158; cv=none; d=google.com; s=arc-20160816; b=A+woQ9aEgwN741HwEr7ji7WGBnvfpzyRIMYNttGaQPZ14IeQJ8fOOrZY4pakVW7jxb tu+TuL2NMP7+sBCogX8YGXc9sdip8QfjwQYKSZhGvYAlf6W4QGQ40gM0bEy6c3VRIggp aXOpiIDfyMBeoJwZVYp87AUpTAYqd6mwgQseerN9gwi/ZLIb5aS+PsfS6CcvtRZbuGWm A31dPn/iHzyZgpUa6962mlNKN82yPnaVO4T0JaPcu4hJ8O/2h5s5Sm+MylotTypEjI6U 3b5XRqiISOSEMnBSN5rHUZEZRJcNPVu6AoCB1ReeernMnRwCkpituSsp15gqDfZcvzLl eq6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=qURlRVLDM8q2QWY5nyY8aEGBFnOlmxzkUR9P4qAMc+4=; b=btbevCrSyJV6QGx+1TtRXs2k4KODJQq1if094EWm1M3WT8LeJ6NgSW05vhccdSSfCH /h9RSOvkfm21eHiDRzSrj4u0t9toLqdd8ue9Lv47SGRnCOZQI6QVFJkKcAiMtV8oF0uZ Ma8uEuNQZa1B+gxTziIFEL+7Y7EefCLIxp+Wzry6w5xfxsEC7CY8sIhzub4o2pzlPc4K QYAYDR4Z3UPTiDg2nlkOO0fr1PuBhLKZRDGmU8/4qslVhwZ2kIR2RBAHNyIrCBBlhalE uQ2ZI2PlX3bTn8QFFzZPhR1sizqhxwkZYuFMD+ew9qnprB94zWZfCOICc6+TEKOmdm1/ HFoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t14si2092954pfi.382.2018.02.21.13.05.44; Wed, 21 Feb 2018 13:05:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752248AbeBUU6z (ORCPT + 99 others); Wed, 21 Feb 2018 15:58:55 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:47093 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752140AbeBUU6D (ORCPT ); Wed, 21 Feb 2018 15:58:03 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id F0A0D207E5; Wed, 21 Feb 2018 21:58:01 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.free-electrons.com (Postfix) with ESMTPSA id A4A95213D9; Wed, 21 Feb 2018 21:57:19 +0100 (CET) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 099/100] rtc: pcf85063: stop validating rtc_time in .read_time Date: Wed, 21 Feb 2018 21:56:34 +0100 Message-Id: <20180221205635.31314-100-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180221205635.31314-1-alexandre.belloni@bootlin.com> References: <20180221205635.31314-1-alexandre.belloni@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RTC core is always calling rtc_valid_tm after the read_time callback. It is not necessary to call it before returning from the callback. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf85063.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-pcf85063.c b/drivers/rtc/rtc-pcf85063.c index a06dff994c83..6ad4511d7ee1 100644 --- a/drivers/rtc/rtc-pcf85063.c +++ b/drivers/rtc/rtc-pcf85063.c @@ -114,7 +114,7 @@ static int pcf85063_get_datetime(struct i2c_client *client, struct rtc_time *tm) tm->tm_year = bcd2bin(regs[6]); tm->tm_year += 100; - return rtc_valid_tm(tm); + return 0; } static int pcf85063_set_datetime(struct i2c_client *client, struct rtc_time *tm) -- 2.16.1