From patchwork Wed Jul 12 08:04:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 107466 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp607102obm; Wed, 12 Jul 2017 01:12:53 -0700 (PDT) X-Received: by 10.84.231.194 with SMTP id g2mr2857246pln.5.1499847173084; Wed, 12 Jul 2017 01:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499847173; cv=none; d=google.com; s=arc-20160816; b=Jn1Avx7hl4JZVcUFiQPcqGKkNWT0rG6Khj5o/OtoFnlRsqhn17zgm9oxnA1KSGwYm7 vDlAXEdb4EmkWFRbZw5bj8wBf4HQoXV8DDN7RA9wDCDbtK+tOKkAx0cJE5k7f7jM8Ly0 dkMrt/f4KlSd4VSYxQtMJcLUq03XuJIXTQ37rQPLVgbWMarZFW4WULtQxqPcbTYGFUcv LN/uUuL7Awj8tpYp1rElXxLweyvS1Bs8wicAPy9UH36NiKK3TTJWgGg7GK0CpqO7MHT3 NLUfkTYxwcjebxppSugpqXwYQmWiq+e4rKUGit3a5YPZOND1dAcrLDU13+E/NtQ/ZcZn 2nUg== 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=4lcbBNywt7fnw0wGji3xZ9HK+BTNE3a/hn32F8xnPw0=; b=XD0EPyz1iEcFzHiAuM9EUIOzqA3U36trwazH84uqqoPafAQuLUvq+zQIdVsCfceyeK 3+lxsxznKz9v3JDUxQkX3eNriFaDvnn8UCaabRwQRdOXCvsSIhe566gdhtMhVZt+NO2p CVQeWn170s9nSk9bLxuEoi2VDwU9rHVO/0TQqX3L9qCQQiGkg9rmQZYbi1iI9qHkw22L xilpsAX0i9Hd6Iho+rM8CBNOw/fbigMjix1Wbr8ozgfJys9Bv7Jc2WlB+QR+xtdm4LNx fnCGUqAvKsHgZ4QEmb8sQRkrnLTz6+vZ4Bg9xEJpImLwqmzu91ocXKx8F4xm8G8lwgC+ bA7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=FVCOCdW/; 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 e13si1465943pgu.2.2017.07.12.01.12.52; Wed, 12 Jul 2017 01:12:53 -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=FVCOCdW/; 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 S933804AbdGLIMS (ORCPT + 25 others); Wed, 12 Jul 2017 04:12:18 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:34277 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757018AbdGLIFY (ORCPT ); Wed, 12 Jul 2017 04:05:24 -0400 Received: by mail-wr0-f180.google.com with SMTP id 77so22544174wrb.1 for ; Wed, 12 Jul 2017 01:05:24 -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=4lcbBNywt7fnw0wGji3xZ9HK+BTNE3a/hn32F8xnPw0=; b=FVCOCdW/TDsJtbPdPD4cSd6tuCJv1/Vjj5ARcaDuDAu3LABsCtv/JYyKCOmsuxVawr K2qA8yziJlX3Kz8kzIRaC7KSDrMV62s6xCO5/Q6llJPey1iLEjI8lt9fKHvtchGbJ1IP CKttqO9BoIrob18EDELilRs5y7o4yib33RMiw= 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=4lcbBNywt7fnw0wGji3xZ9HK+BTNE3a/hn32F8xnPw0=; b=dndsuXwRWOHfamq6w28qqIebnyf1RLA00WjAEWUYuraiOUhUrUG/bGHcQBt+5lS580 7K7AvD9N35EKtaFabmeXp+7hvQVUdWgMMYmbbuSXZg2+aRJnr9vRslkYlKmrQsoFiAdm h+2++oqnBgURkfvpAwO12596Xc3bdnu4lvdrMHH2ooTvPjUQMVUxL/BFu7upwW5Ka8CK 0nkBpb008gtdHsMg71LZoT843j+3m9ctmOYb8x/RiWnvNE3kE5v1BNiEw7bqlZtEHJ08 SBJ60X7KkRCr9L8wpUtiGuP3e1KbIpywsXm6DRNL2DpJExUpy2wF/lKHIxyiTcwpGfLB TTPA== X-Gm-Message-State: AIVw1133x7Id9e74145qFc48XODPGVIin1PaagfcaGAQlGkQ7pmeSUrF VOJmdQ5FI9YmG42d X-Received: by 10.223.170.138 with SMTP id h10mr2204561wrc.153.1499846723358; Wed, 12 Jul 2017 01:05:23 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Jul 2017 01:05:22 -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 09/22] rtc: ds1511: stop using rtc deprecated functions Date: Wed, 12 Jul 2017 10:04:29 +0200 Message-Id: <1499846682-14093-10-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-ds1511.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c index 1b2dcb5..3744114 100644 --- a/drivers/rtc/rtc-ds1511.c +++ b/drivers/rtc/rtc-ds1511.c @@ -279,7 +279,7 @@ static int ds1511_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) if (rtc_valid_tm(rtc_tm) < 0) { dev_err(dev, "retrieved date/time is not valid.\n"); - rtc_time_to_tm(0, rtc_tm); + rtc_time64_to_tm(0, rtc_tm); } return 0; }