Message ID | 1497951359-13334-23-git-send-email-benjamin.gaignard@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1274866qgd; Tue, 20 Jun 2017 02:38:11 -0700 (PDT) X-Received: by 10.84.148.134 with SMTP id k6mr4966113pla.150.1497951491393; Tue, 20 Jun 2017 02:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497951491; cv=none; d=google.com; s=arc-20160816; b=UCR527XHscfF7siROzTbeePvhwiWVzmdhQxsnXE2VhBMOkm7gMwqH5FjBRRY+SsDSv CiLtmSME5vuv8Lmon4WK1Jq2gJXwA0FlEIlEbYS/r2WoeAv0Zs0MxD6kz/jsxhGMj/FA cUSOSJrjaKP4xNt5pP3+MBrIn7zXT/2fvfCqxWfvLA3v1JkqSg4eaXUOSWQo/2EgX6uz fiBWvgYtP4Qe19NNt7aYI0JlWiZhoHI9oW+zRrq+l9Bka8czlLZ1D4iF31fOutzkqcNh PVmsyh9CEoJF4KGcFYEtFMz4jbhxvXCf5APpfSjvJwZOroJrhWjjtxjrCHZvWJovRGWg +WZw== 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=a8OvcgxX7DKilQxXn0w3WL5mzEKXYuDNJJmY/pe4xdM=; b=jcyMN6IF1SOXInq40OyBtWt4So9A6Jsw8L9t8gQ5TycCQMU3TNnKW3HfEE213IoQzz 4n5jSZTWSVZEFzpsKz+2bYDaqjFfcqCI+Ygsl3Pyinu1CHMQRvxBTYq+MQJ0NeuIVmhE jt9qWJzcduSNjuBKkxRSnwwFclgpMuE7iZ3UYPQLKswEToYKwmwgdm0N4ai0U0iTPYqn Y8xWOKzDdCs3olmuIdzYqyl5QTaMNDJ4708K8q1kNaTBx2UKZBrQIz8rQfO7jQSGN020 Uc+KeCc+i2rngTTd72qz7hV4JqGxOd2VgA1vgD4w46ULbEPjcQeib2c+kGYCiFN9t/eC 0pNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=Eqqd9uGz; 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 v1si11150641plb.188.2017.06.20.02.38.11; Tue, 20 Jun 2017 02:38:11 -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=Eqqd9uGz; 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 S1752897AbdFTJiB (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Tue, 20 Jun 2017 05:38:01 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:35906 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752836AbdFTJhw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jun 2017 05:37:52 -0400 Received: by mail-wr0-f181.google.com with SMTP id c11so32951886wrc.3 for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2017 02:37:52 -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=a8OvcgxX7DKilQxXn0w3WL5mzEKXYuDNJJmY/pe4xdM=; b=Eqqd9uGz1YgcUs8xs8mJh+CpzjFcvWexldubGNYlA1SuZHQ1ucm5veEDDP1XsDgq3X aSGWs+qgRTIfq0wQ3Rti3iq+cutDY25W0xv58vlLFH0S54xIJ5CDIisW9rebaWklwvar RU5fDV1ug9ZnI/Mw/Jcg26796Cp4fXIVyZNqo= 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=a8OvcgxX7DKilQxXn0w3WL5mzEKXYuDNJJmY/pe4xdM=; b=Drg0fYF66hRQ9CGFoOoFvoDnMdF98QKijw7o+uooHWNiXj0i23rTXqBiGucfWWMjMl n0LtkW2ab/ewJvOTxbbNSyjnqZSGnp8s+4UxB9AZ9fE9nw1fkXk0rSZse3YPZPGrKhtS LGAZoU14KTVnJzR6C3ro4zdOKy7me1yU4iHepyxTuxubEhF5HC5y+Vxu2xaCYnLg8u2g ch9i9U9CIQulGDOLwLxeuKCLs3crxnXDArzjTnTiSRZyRU1fxt8DOHUwbNBfpKe9ZvTk QZIzJB3leRaplLlyjk8zLJyv0mMvO1msDAGPQYVJ5OE4KZVcmxqNbpn9/6A3diB7q2PZ GBQg== X-Gm-Message-State: AKS2vOyytp1J/bOiWbEh02tBZgq7r7J6KEO2USk5N/OSsM3HIPwOC4Q9 e7H48MsWv82yFHbk X-Received: by 10.223.166.196 with SMTP id t62mr17950307wrc.52.1497951471597; Tue, 20 Jun 2017 02:37:51 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.93.217]) by smtp.gmail.com with ESMTPSA id e24sm4482318wrc.35.2017.06.20.02.37.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:37:51 -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 22/51] rtc: ds1553: stop using rtc deprecated functions Date: Tue, 20 Jun 2017 11:35:30 +0200 Message-Id: <1497951359-13334-23-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1497951359-13334-1-git-send-email-benjamin.gaignard@linaro.org> References: <1497951359-13334-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 |
rtc: stop using rtc deprecated functions
|
expand
|
diff --git a/drivers/rtc/rtc-ds1553.c b/drivers/rtc/rtc-ds1553.c index 9961ec6..dc08366 100644 --- a/drivers/rtc/rtc-ds1553.c +++ b/drivers/rtc/rtc-ds1553.c @@ -129,7 +129,7 @@ static int ds1553_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; }
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-ds1553.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1