From patchwork Wed Jul 12 08:04:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 107459 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp603062obm; Wed, 12 Jul 2017 01:07:55 -0700 (PDT) X-Received: by 10.99.109.69 with SMTP id i66mr2585562pgc.187.1499846875278; Wed, 12 Jul 2017 01:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499846875; cv=none; d=google.com; s=arc-20160816; b=P5OHpnxbd58EXeL3dn0vsAD7MCYwvmE3WSusakYHpnA8BD10cXakxTxc9OX6kJ91f5 7YzM1Ebodi6bvgKS/cMNfWnXBvW8ssy3QnE2mXqqFYMhndk/tXGJuKMO5KcG8uN528k0 Gee/BfIt9EQw4AYsec+CHtPXfJuzf5a4MU1n0slAV2Ci+P0U7KyNrIer1aPHPRZ3vsGz 3Irhse1gzPOpMguTFYfxxIO11hxwTwBss/HGM4ZxuSf7wEACSbFUrwg/GmDNXGxqU6V3 NxI8hC59oMYPSP7LgCRCO963Trs1u07jG8LOKYgeNdcbzqet7ecbuhkcIfUWs4sPc7oZ 1sjw== 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=NA7WUoeTISGrobwDc6NzfTZVXtfmkzzFiRsU/agjCR4=; b=Wl624w7HcK8SQP1XZm+ganIRxJwdi07TKrRBS6HniTPXRA4BVW5d+PtaGi1NT1kxOk eCjd6iBe3quGiopxI9mIIHccqa4VwLHsPGoVQjcwwqhYf7gdJRdj8d00gMZbZe9e3ddW PbN8eD55Jmmx2qptYCW6jpy7lZh1l/pRJWvoqcSTPW2cfEaRJp9sXSrdlv6vG6LlFKvL rsEEhwWuxL1Zvy9JRTZ2oSQtbtJS5FafaImBs3tf/I5n7Wa4uM2e+CVeTn4iwP6jy40A U721GF2Ha8GMvDyp/Sjextf6fTATDq2OJfW9eTheUQibsGj6fI6rdHXunzRHHFts2txQ NQxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=W08VhBXP; 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si1375728pfg.344.2017.07.12.01.07.54; Wed, 12 Jul 2017 01:07:55 -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=W08VhBXP; 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 S933418AbdGLIHq (ORCPT + 25 others); Wed, 12 Jul 2017 04:07:46 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:35021 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757097AbdGLIFv (ORCPT ); Wed, 12 Jul 2017 04:05:51 -0400 Received: by mail-wr0-f173.google.com with SMTP id k67so22376538wrc.2 for ; Wed, 12 Jul 2017 01:05:51 -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=NA7WUoeTISGrobwDc6NzfTZVXtfmkzzFiRsU/agjCR4=; b=W08VhBXPIcPw3SPOqEB5OEr3Z1gEGcoviE3hhCgOlFXC457ZxXpQnr2RB1Mj46oIc4 1UHN2/08TjuySITv9CL2mCgF8PN74BFWccg+k+bEyVg6J3YiYoBe4ng4n7HD/aqS6VlE MdMgso8zLhz7Bv812dMfGCLDaqfPtFsi8fG6g= 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=NA7WUoeTISGrobwDc6NzfTZVXtfmkzzFiRsU/agjCR4=; b=By3Wnu8VGhiYafQ7L39UdKLt3giyB3JIdkovbYuuzH9RLYGrrBjUvGHTQ0vDWm1OIB 6wEgYxLTduINPF60+xs+oEKd2FSBxIrSDbJMLhW5PrJtDEBGSV5Gq/cRvwvdEtiFFw7/ iPsFVE1ymbt268D/FyMCgQKJh5mw8bRbJ6U/SwpGEJpEVZdnNttg1djxxh2n8T1Fc0lC 2/XMes67LJgrBo6MSiI41uOZD4iwafoGfRN9tliIllD4iFCVUzw6TLliA0su6GCUFlR3 Qv4sVRlUnm+rLTDx/4wFlXS/3hC6x5dXGCbRGLqOxoWFYIPRsXdMlTeg24XG5VJm8cW9 3v6A== X-Gm-Message-State: AIVw113A543y2M7f9Nornv3aq9KLrK8yTSBNCkEMn0hlRcYID0MFcd8n 9JOtsltxxATVUZXU X-Received: by 10.28.208.69 with SMTP id h66mr1551062wmg.66.1499846739348; Wed, 12 Jul 2017 01:05:39 -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.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Jul 2017 01:05:38 -0700 (PDT) From: Benjamin Gaignard To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, Alessandro Zummo , Alexandre Belloni , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 18/22] rtc: stk17ta8: stop using rtc deprecated functions Date: Wed, 12 Jul 2017 10:04:38 +0200 Message-Id: <1499846682-14093-19-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: X-Mailing-List: linux-kernel@vger.kernel.org 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 CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com CC: linux-kernel@vger.kernel.org --- drivers/rtc/rtc-stk17ta8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/rtc/rtc-stk17ta8.c b/drivers/rtc/rtc-stk17ta8.c index a456cb6..5a0dca9 100644 --- a/drivers/rtc/rtc-stk17ta8.c +++ b/drivers/rtc/rtc-stk17ta8.c @@ -131,7 +131,7 @@ static int stk17ta8_rtc_read_time(struct device *dev, struct rtc_time *tm) if (rtc_valid_tm(tm) < 0) { dev_err(dev, "retrieved date/time is not valid.\n"); - rtc_time_to_tm(0, tm); + rtc_time64_to_tm(0, tm); } return 0; }