Message ID | 1499846682-14093-16-git-send-email-benjamin.gaignard@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp601463obm; Wed, 12 Jul 2017 01:06:01 -0700 (PDT) X-Received: by 10.84.143.129 with SMTP id 1mr661662plz.185.1499846761823; Wed, 12 Jul 2017 01:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499846761; cv=none; d=google.com; s=arc-20160816; b=jIiRV66Nx93Np9/JaJKyUgIu/O+8OG0xsaPSTUzHDQZLdJGaVu64MU8wZ9IxxgvZmo 2KdUQKuKPGDT1SvM7DP+3xsnVvk5CeA+kk7cvA28EbodsZt/MofDCYKFQ/CG83vINuC+ 8n+RgPDL2kgfHaoA6J03GiRFl4T1ua5gSRmk8p2ZBO9EuTkKbdYqGjFy9QtBHmZFw+gM qNXagWdV1mY+tJ3IEWLZTq77ywFKIbMDbao3u1TCY+8qM3is3NDFQHwustKztSA52aBZ +53yBhw9INxuBN8mDITT3fAFKz+Iz572HsrxgUDmpx4IrbfoFyV8yNAjIio0IuKMaLso Jo2w== 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:dkim-signature:arc-authentication-results; bh=PkpBNtHW9s2hAcMDA2kDZOafTxLz6igq0gdWD3j/TSQ=; b=lz6+Vt26thfjsLBX3fIyko/YQHi0tE960Ehap5Jf++EKQhlpjxipKBcBgKfHw4kcqs HBui9t4gHFYthTfYRpuIDAt5FtRX9AgepGxiXIInI0zyzBzVFyKfW8w/r6L45rnGsMYU K1DRG/QeKOxAoPITpBfMSrUiwwrQy1kqZ7bmyK2Wjn4C/yYjWGpe9xyIkuuA0m4ycN7G k8LNujl+rB+WI7KDcmJml++puFFgKWyO7RZggUYLbKI6LKYcYkoGi84ou5xiNWZI0Ika hMiqy8xlGkPCutPuoSPG1SqaoGKTH01KNN7/NVBmQyBxJKOlV03dFhjp7LdLweBdVrln v4RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=kljxM6dc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si1435857pga.184.2017.07.12.01.06.01; Wed, 12 Jul 2017 01:06:01 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=kljxM6dc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757089AbdGLIFp (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Wed, 12 Jul 2017 04:05:45 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:34931 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756967AbdGLIFe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Jul 2017 04:05:34 -0400 Received: by mail-wr0-f171.google.com with SMTP id k67so22372608wrc.2 for <linux-kernel@vger.kernel.org>; Wed, 12 Jul 2017 01:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PkpBNtHW9s2hAcMDA2kDZOafTxLz6igq0gdWD3j/TSQ=; b=kljxM6dcIi6YLB2S73ZIAamseKv4EV8lEEae0j5GVTeXJwPeJFQIbxEAraMqwxJCiu u38B0tvUcZcnUuSrzaftipNaPmeFZx7vnxwwA+woKHRggG0OEwZJzFgUKjg4fb9tDR4P SIzM6Ij4wL3InIUHz13G5uSOuTKs4VgKovB3A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PkpBNtHW9s2hAcMDA2kDZOafTxLz6igq0gdWD3j/TSQ=; b=JzGKTj+Vi+4xaP1sclJfIKmuquRtsDyRWaLlhdjSiOzH2CyUD/hu3qPNyz9JUbPfER SueJAKNBCaey4OG4FizAUXZgWcuXiB8+ltEPwMJ2OqafxDqC6Wyq41H8pN+d45rhattK PRmFO6/biASuHkwdiynCR3qvzKbjr/bLmm4nhLMEJAsTnudqpM43dhuf1oT+X3CEyY/4 36h1mclnOEnKeUkYiSxhMOzgCs+GAdEX5ClttciNfHg/8zq6cdaclQsD7dOuwsn5FaIZ CBm7IDDIDiOWr5AzvcChxOroRDN7u/OVgGeWyIdNIKqw5MXilH2h4Qc6Kf7i9e8sx9xV Or+A== X-Gm-Message-State: AIVw112pkMk1BPTEc2jpen8FIe5KIut6MhNc3JIsiHImkkgiy0VC8JkR /9S3IyRRxGRc0EqX X-Received: by 10.28.64.196 with SMTP id n187mr1556089wma.94.1499846733676; Wed, 12 Jul 2017 01:05:33 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.158.26]) by smtp.gmail.com with ESMTPSA id p34sm1430744wrc.66.2017.07.12.01.05.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Jul 2017 01:05:33 -0700 (PDT) From: Benjamin Gaignard <benjamin.gaignard@linaro.org> To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@free-electrons.com>, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 15/22] rtc: rs5c348: stop using rtc deprecated functions Date: Wed, 12 Jul 2017 10:04:35 +0200 Message-Id: <1499846682-14093-16-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499846682-14093-1-git-send-email-benjamin.gaignard@linaro.org> References: <1499846682-14093-1-git-send-email-benjamin.gaignard@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[v2,01/22] x86: rtc: stop using rtc deprecated functions
|
expand
|
diff --git a/drivers/rtc/rtc-rs5c348.c b/drivers/rtc/rtc-rs5c348.c index 9a30698..f82c0bc 100644 --- a/drivers/rtc/rtc-rs5c348.c +++ b/drivers/rtc/rtc-rs5c348.c @@ -137,7 +137,7 @@ struct rs5c348_plat_data { if (rtc_valid_tm(tm) < 0) { dev_err(&spi->dev, "retrieved date/time is not valid.\n"); - rtc_time_to_tm(0, tm); + rtc_time64_to_tm(0, tm); } return 0; @@ -183,7 +183,7 @@ static int rs5c348_probe(struct spi_device *spi) dev_warn(&spi->dev, "voltage-low detected.\n"); if (ret & RS5C348_BIT_XSTP) dev_warn(&spi->dev, "oscillator-stop detected.\n"); - rtc_time_to_tm(0, &tm); /* 1970/1/1 */ + rtc_time64_to_tm(0, &tm); /* 1970/1/1 */ ret = rs5c348_rtc_set_time(&spi->dev, &tm); if (ret < 0) goto kfree_exit;
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> CC: Alessandro Zummo <a.zummo@towertech.it> CC: Alexandre Belloni <alexandre.belloni@free-electrons.com> CC: rtc-linux@googlegroups.com CC: linux-kernel@vger.kernel.org --- drivers/rtc/rtc-rs5c348.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1