Message ID | 1497951359-13334-42-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 y2csp1275023qgd; Tue, 20 Jun 2017 02:38:39 -0700 (PDT) X-Received: by 10.101.88.67 with SMTP id s3mr29871422pgr.75.1497951519168; Tue, 20 Jun 2017 02:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497951519; cv=none; d=google.com; s=arc-20160816; b=y6WaLO/lfvAiUwHDrXKSHDYblmYCVPNwBoEfzkBjDzQG+uRXBLgCZR7/iucUPnfWvr yc0CFogxnLv+69gxcSZrf/3U/wRJreQLIB/hK0fO9tlL1azYMFNPPWL+toAOpV/w8BNn 2NLVKINroaepRMNMSAvK9F/wUoOWJAgcXd0ZB4+7Mzv/daYWuehWQt5K96JcuYJqVcc+ 48mdevz8xLEiuRP6Mq1QvbupHq8iMEVZuQ76MU/GuoYKHXI7GkTg8oWLbpitci6id9YM RE5Ele2KuWybRR+aRooQ4n8K71Onj4Yn3XlG3hYlFjn4xw9KzVKZnCt+o3W/Up+kWWdl NKvg== 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=LYp3Gw9hx1Q4cktC6pLi0ugdQVBFYuq/beU5Z4GS/yTA6LOv0yuzJ6+P1JK2IRzrWc 1EFEz7fj83ocVS0dGfo8x8LJ4Mrw5uBI+LSg3Nn6/elj2Dc1z/Y8asJPvIccgtX0t36N SGGTZi6S3uQ/E2UhrWVTK2Y/+VBMxCqrRUHqGLH3335oSzqiSHbXfuJntIgKiDD5o7Mx rMzDhhXl3MjNT4nhP9ysfrnfn3R+ToOU5N4LLW8LD679+SAr5nSDPYa+M4YoeOu/E/Mh 0eMMpdMUpqOhrD83EI2ibCIV/ZGZ3IzYp72yIRbOhmjkREdUWtoLd/YY5+RaNN+7Fvni TEfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=Abkual6y; 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 o12si11120496plg.593.2017.06.20.02.38.38; Tue, 20 Jun 2017 02:38:39 -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=Abkual6y; 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 S1753096AbdFTJid (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Tue, 20 Jun 2017 05:38:33 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:35654 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751640AbdFTJi1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jun 2017 05:38:27 -0400 Received: by mail-wm0-f51.google.com with SMTP id x70so16044208wme.0 for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2017 02:38:26 -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=Abkual6y0kqmL3sNZBqKINR7HDNjzCCkbXIEB+seJoCaDeSazOzioiFsGnYtYgUCM3 lu1LYCjSmQT9PomuaYOPIBxXgnHHok33MrKZ3R9x3p+p20SGFaJlzP39P9/jz09FOShi efLORH0rip9ZrbhieqLk1FHi0xYbIcwdGRglg= 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=AgczHgAofqx0ASM1fjuQGak2ycw5DWD6nU2in/uSOzvPtNNwA8Cb4M+88GPCwuJhqg pg9SRzS10hZM10+xqMog+SFLuCWMA0zXXHL2X+JWBEXpCh9RTg5Iu6XpPtl/risa5XWW Zo8r0nGvT/NXw8LB1P+cwBAHOR2VALeRGoByTGdlc2c9vZW3OpdOeIl+D2LE0z1oUDzm 7nv6mtFX3n5l9Yrg6R+Ne52u3FM65V26Nwk/YwNrhY9F3PHz+/rSz76lW20pGx6DJszm sS6bAVNxyTXwCKBAe7oZVb2yUXjmsA4Hiv8+qTVBJVndHQjtIrRmL1GaA06kxBfho526 SZpw== X-Gm-Message-State: AKS2vOyfEJ78yJHvNcRJM89T34dzpsX1tu4a0ceMsaj+hmI+to3ndATy pIrcCFXtzTwVt6HiieZX/A== X-Received: by 10.28.16.12 with SMTP id 12mr2007437wmq.9.1497951506109; Tue, 20 Jun 2017 02:38:26 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.93.217]) by smtp.gmail.com with ESMTPSA id e24sm4482318wrc.35.2017.06.20.02.38.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:38:25 -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 41/51] rtc: stk17ta8: stop using rtc deprecated functions Date: Tue, 20 Jun 2017 11:35:49 +0200 Message-Id: <1497951359-13334-42-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-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; }
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-stk17ta8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1