From patchwork Tue Jun 20 09:35: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: 105982 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1279311qgd; Tue, 20 Jun 2017 02:52:12 -0700 (PDT) X-Received: by 10.84.174.197 with SMTP id r63mr34427024plb.237.1497952332623; Tue, 20 Jun 2017 02:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497952332; cv=none; d=google.com; s=arc-20160816; b=yDCc5VzF9kvaMYLfzFRpLDPmDkjsWMsFXlLRUGljUJFcT0kdp8tCRzqaT10Fj1oI4U MsZr6OheMOc774C4hD/G59flAAy+V0yjl1JXnshdBxSxAJNdJpiN+fU3VsAFaUh1QZJi SgLrCP5F7eQb3VXbW/5F9Vh1eTXtmlbjHAmyAA3Xtm8+xcA/N9bZee5pE8DMvjYjRk5l iFXCDRfQK9qR6T7zWJ5M9DJOqcGwMDbQ1V8ieAgGy7dl0EMyV5K10RUbEIG7/MN+NpzC Kbj+pYuH2XPNyq/EQeVR72KX5WI/7nCuP0ZaxwEU4ea2TcaPvIsdE/x3q1giW22uLA02 rVLA== 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=uZuOWhCEubD+A81+XOEW+Miotw4DY25wR8sNTWaFKg9Bd4M3cwEPzmqN1WKSePhQJh rEK3fjz9AyVDnhZxnQgHLf4KAg3F7ozHcr3rJAR98isyz6fS6qAHHpeyqVl6ScFqoj/G ur9+VBKM6FXFfjf344P9d3ia0YGwMThQp+itWu1QzrURsUf4+fs0Q5838pZPyByQ2A4D +jrJflppoXkGl3fu9eVJ+DMyrK1Fdl3/gF00TGkZHsIPJNMVMTh3rx0pfWnqSdyewOuv RCB+tGeAi5kFDo7xe86gLxIl+GpXeT2+aLXe6ko8CxHIDT7Qz5UNrCqr4dtyPfnpGYYK Sxew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=QBeYmo6D; 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 l20si10309362pgn.282.2017.06.20.02.52.12; Tue, 20 Jun 2017 02:52:12 -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=QBeYmo6D; 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 S1752681AbdFTJwI (ORCPT + 25 others); Tue, 20 Jun 2017 05:52:08 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:34200 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752052AbdFTJh5 (ORCPT ); Tue, 20 Jun 2017 05:37:57 -0400 Received: by mail-wm0-f50.google.com with SMTP id d64so23692342wmf.1 for ; Tue, 20 Jun 2017 02:37:55 -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=QBeYmo6D109IlaTHFFpNt+m35XWzGL2ZO2tD5B82YtPQWejVAU/p+HDWq/UQCzFN2s bvVmzbMDo88znXhHFt1GpMViH365vO8WY95ahgGPtm/jgORoZor6hE60Z67JLPfYYzZo UnryFmXu7muI5MLIQz/5mTj1nTxoA7US6sW5c= 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=HCy8Vu4q3WMI+IFfvHA1Tgjqk5mpDp1pZuBaEz0zNL3bAU63SNt0kI75+/U5AOFzvO DUTRNLj6R6hlVAPimDWavqaOUql0TvDWT7/3mNkz2EZ9sKmwnGoxDrc95Q7Z0fCCSOTK ITUWciRI6XnUTSnVpm5y1SnFLcjrhpYbhhaifUc28c96I10zW7/OJWqy2BH83U5m68d/ YrQfMwoTereLctu+Ln8ZbWfVAFtvh8dAvtSHKavM3bXYABeA8JkH4UaMLywuEQyc4ucv MGf8vgIWqE8VrYQr0mRZr4TmvEF6uZkdfvfQ1dsejqIZYTgus1BXzppUPsvJ082Fx5UX QYjw== X-Gm-Message-State: AKS2vOyOA3drBm6Rmm0QN27UROA/0qA/P6HY1/MbS5P8ACUbUVOw2hAd fuA8NVmWx9poXWki X-Received: by 10.28.143.16 with SMTP id r16mr2210210wmd.50.1497951470018; Tue, 20 Jun 2017 02:37:50 -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.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:37:49 -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 21/51] rtc: ds1511: stop using rtc deprecated functions Date: Tue, 20 Jun 2017 11:35:29 +0200 Message-Id: <1497951359-13334-22-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: 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; }