Message ID | 1497951359-13334-18-git-send-email-benjamin.gaignard@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1274759qgd; Tue, 20 Jun 2017 02:37:52 -0700 (PDT) X-Received: by 10.84.131.41 with SMTP id 38mr32627276pld.262.1497951472477; Tue, 20 Jun 2017 02:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497951472; cv=none; d=google.com; s=arc-20160816; b=NgmMMAFzI8Lxb+jjY1s3wtvQBaKG0c9easxejDawBRssEhQmS821SRGNcEyAG35r8U sZenO5kmUYXRSeN6eyVcFbPFE1umMkDO0JV2qdTjR2HIMDyHW6VMA08tInDMQQzai6Lv 6+2FQKYvYpXYuTYzvSPiq4B35ZZYyDmqIvgSMGqrdzfrKdkNaduJ80PT8M18ebKDnfMT C43wDbGL2GNNsK2nKj3L1KikLZou7oKyy4LboNQYoLLwMyBK1qPAs0WvEykfifCapSSO dfAYzpNVH5WEK+W00Y7X8UoF/gQCIV5eipy0Xxk7Q2XnIOrb6T20ZLGDP2o6ydKiOanH KOpQ== 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=kS6aC5A795MBrxBfouxxn7x9+2H5+KOclLXysVS+N0A=; b=B9LyObgaIS0o/dZMZdpJEJaoZN3wQVWX/bkYcJQ/fD+HSyEG3QWqQ+icPNM2dnqllt s5IVBMhDsKxTKczf2OrUWQffi6e2Ksz9uP46PIYJYMIy4pl5g7X2KEtrOQdfB1TMLDdc I2xEkLYkBPmjFrh/O8OgUzdzM10sHnnQEBi9Hsxl3UOurczIpXuok8qYJb2mzVz1EICR lcsI9Peo2u1c4yZ+snWwWivee88Sq+wgZ0fg8vpa6E2ZCH350pDtis84F80lwj1Ao9WC CT7cWe6uetFE6/K4v4qBkrreOIVC6uMzsa01YIMt3xUgFT6lH6H3cnYn/n67TwGmerYj tEPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=Rao/3wiT; 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 43si8646748plb.270.2017.06.20.02.37.52; Tue, 20 Jun 2017 02:37:52 -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=Rao/3wiT; 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 S1752824AbdFTJhg (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Tue, 20 Jun 2017 05:37:36 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:36799 "EHLO mail-wr0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752751AbdFTJh3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jun 2017 05:37:29 -0400 Received: by mail-wr0-f175.google.com with SMTP id c11so32946170wrc.3 for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2017 02:37:29 -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=kS6aC5A795MBrxBfouxxn7x9+2H5+KOclLXysVS+N0A=; b=Rao/3wiTTeeE7T0SjV0PQtKw5U2Sfd/X9sFCg5B6MwgcWda45rZWIcC5xv1zFDbU8M /Kjcpo3NNA2O3qTL3NqjRpjKyvDbdhOYAo+MeYLTViFISilRAhlD7JC/iG5Ep6ts4pWI nbIVzFZCZWMsvdzuZGHWakhkSWuIY7lUECh/E= 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=kS6aC5A795MBrxBfouxxn7x9+2H5+KOclLXysVS+N0A=; b=iRBMcqQ8rSYO2modjX3cANIRIlapUYn2IL2Yl2QxXVZ/P6x3tXWQX6W+TzE4TjcFac kq67Kznk70f3KzdVBXJ5Hpw3dLvFIDFNwJhMZcTb4I+fIpTIcNkvMkwoaY+0/9i9Zq8b IR8ZP0FWnMAFPh42m2Ggu8Ww0LSzwfqz1KtcjaMaYd7E78lUnVE4F7DJckiqM/H0PuD+ SDpWQ0+MAKqcsGeQK8++jVMNabgpd6sQPnaifoPdYUf9wMYSz21MBd0BYO/H81H5nyjN oOHHuaNjyY6RWwQk/e1vSddayXuw9tuvPmzKn0/m9owPIqXvChE09JXasW1e/QxSnMcc i8mQ== X-Gm-Message-State: AKS2vOyxKbkLMu0Usgx6CQYC/h3/nBLdbPT1Zbr9qhsza06aYVSgOrKS YlEPfL/5rj7v3VF7 X-Received: by 10.223.178.68 with SMTP id y4mr20188452wra.196.1497951448538; Tue, 20 Jun 2017 02:37:28 -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.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:37:28 -0700 (PDT) From: Benjamin Gaignard <benjamin.gaignard@linaro.org> To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, Baruch Siach <baruch@tkos.co.il>, Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@free-electrons.com>, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 17/51] rtc: digicolor: stop using rtc deprecated functions Date: Tue, 20 Jun 2017 11:35:25 +0200 Message-Id: <1497951359-13334-18-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-digicolor.c b/drivers/rtc/rtc-digicolor.c index b253bf1..01b0fe8 100644 --- a/drivers/rtc/rtc-digicolor.c +++ b/drivers/rtc/rtc-digicolor.c @@ -106,7 +106,7 @@ static int dc_rtc_read_time(struct device *dev, struct rtc_time *tm) return 0; } -static int dc_rtc_set_mmss(struct device *dev, unsigned long secs) +static int dc_rtc_set_mmss64(struct device *dev, time64_t secs) { struct dc_rtc *rtc = dev_get_drvdata(dev); @@ -161,7 +161,7 @@ static int dc_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) static const struct rtc_class_ops dc_rtc_ops = { .read_time = dc_rtc_read_time, - .set_mmss = dc_rtc_set_mmss, + .set_mmss64 = dc_rtc_set_mmss64, .read_alarm = dc_rtc_read_alarm, .set_alarm = dc_rtc_set_alarm, .alarm_irq_enable = dc_rtc_alarm_irq_enable,
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: Baruch Siach <baruch@tkos.co.il> 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 CC: linux-arm-kernel@lists.infradead.org --- drivers/rtc/rtc-digicolor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1