Message ID | 1499846682-14093-11-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 p3csp603067obm; Wed, 12 Jul 2017 01:07:55 -0700 (PDT) X-Received: by 10.99.185.25 with SMTP id z25mr2571483pge.273.1499846875738; 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=lkFbvUq5YrW71+S0EeRCjxP8AmNTJ84Xf49mf3zEYABMwe4GopHs9p72jM1XgZ1YdE 21z2CLw9xJ2Fqr5Lm/5udii+h5uRtWHhF2t0c6kPq3dcJdP99xoo5GbNsABS/SW+lU35 YB0PGtw0cBIjse9v6cfXCnuSSJExyJBosHyMC4WBrANmqPnoP/HRvKi580GkBkkpny4V q3l1WDk4AXOZQbY817slt4gV/Ji2w3rpAYre3qh8rM8usKwpEsZHc7y1kWf//hAueZvX D475wTyo+UswJHPRFYXG7dsnBvJ7s/bGAoswHG74QxDR+T/3n5yIE+a7MUduhP0cBxNQ azxQ== 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=WpfDvZhnSghyyge2gDuic/p3L3EoaAzNcpynAU4GML8opLRZYmHzMjE4fhodE5No1z L0c/yHGwB06WHauWmawPhn9SoiWfvgtxvzRWbJ59zIjTefb4ZD+jA6ZFgOcftFA3yUMH 4Cu1v8p7q6uHtgc3nc7nSLL91U6uNxX5PGJlGlJAT+qx1h/D2zITq7l0D0WduCp7UgNb f/0S15VKP2qDjytMxulIWTqZPPHPWU8MEY+wNJC6urPfObNMN9TgoXdUAT0HxsMRF5Yk a4wlHO0kCX6fayT29yBIT27gMGWdv0k1DlbNZofUNZmZuH76VAF0mpozpY6zzuUYFQlV 5Opg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=eeUjkykM; 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 g21si1375728pfg.344.2017.07.12.01.07.55; 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=eeUjkykM; 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 S933477AbdGLIHs (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Wed, 12 Jul 2017 04:07:48 -0400 Received: from mail-wr0-f172.google.com ([209.85.128.172]:32945 "EHLO mail-wr0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757095AbdGLIFv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Jul 2017 04:05:51 -0400 Received: by mail-wr0-f172.google.com with SMTP id r103so22507512wrb.0 for <linux-kernel@vger.kernel.org>; Wed, 12 Jul 2017 01:05:45 -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=eeUjkykMUufZ2St5XEt6KOKJ7S4haznSFe9diqJTigOXGb+NWRkqfpH8hxfqk5iNX/ Qy8J8RGLoehJ+F0WgIVlFpdkmL/xYcrVDGAHmV9fIngGSb57SE7rz1bDNh4BgxSE4Q2w AailrFLBmjK/m4MKfpeXU2sCAfcqkGzEX7260= 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=fQVi4TkLhghpEkzQzeFcgZhPcbUrhflNZpXS42aK/S/0QIQNflh7xkQjELWXmCQXdD QPsTvrWntpL0ZIUWvQic+hfYKtbBisLBGwprt2ZoTVnbLK7HXJai1LHkjdR4A/qzhnq+ 0pjB+n93C4ooSAl4f4sTVYOeRau0+g8YBCVp6mM8n+RcthLENXrUjXHlRZqgXyfyIQvJ MPcjmONJfqZZfnhmD/jCoJ7KOj8tS2yc8LpPxW3BKuUyAwqv5Q8esjA89DaUbVeuEk3/ SvnjbCkGLEos1fmQg6xzB3OknVyTyvacafnpxGSxXDSbbiaI7bZM+eRTMq5UmKJzZ29B Rs1g== X-Gm-Message-State: AIVw1112aP4yaYnRcMfhgDQ2x6JepAVcr9N7kbZP1rJBTU/GVO6rp/Gb maXMtR25s4BNLTX/ X-Received: by 10.28.67.6 with SMTP id q6mr1626839wma.6.1499846724999; Wed, 12 Jul 2017 01:05:24 -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.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Jul 2017 01:05:24 -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 10/22] rtc: ds1553: stop using rtc deprecated functions Date: Wed, 12 Jul 2017 10:04:30 +0200 Message-Id: <1499846682-14093-11-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-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