From patchwork Tue Jun 20 09:35:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 9799051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5D6BE60329 for ; Tue, 20 Jun 2017 09:38:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 515A226B41 for ; Tue, 20 Jun 2017 09:38:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 462A7283A6; Tue, 20 Jun 2017 09:38:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C6AA726B41 for ; Tue, 20 Jun 2017 09:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=fqmDc9iSrppqf6cabf0+r8BfiqaxNkkYovFmHOmdUvQ=; b=LrQ5Azj+zIfi2pVpFLau0Gmfzl JeEOR0J6qNAFfuUz3vCzU4dayN9/+7WNgqWOjZIXM+z2zr+16APttnV8dueGoLV1WcRO+0KyP2T3l gkKRDmn9OhtLHum7klROK7jQZLt1rjGjFamOo5yIV7/CjIEtjNlRRnKxyR64YCSfkbBc1K29ZsfJN yh9D13FFlMd8RnUiKDN7/TScOSYY49Pgp7qsXdGYMJ354U6kcHi/j8mI7/QW1qjiNev7JkKNpbcsq OtL9WaPLQKX30zQzAxR0F0jiub8P7BHkJ6XFyXO2SEesj8Ur/nHeUFl6rp03DPOgENKRfT4sx1G4q 0qW3hAGA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNFbv-0004NN-91; Tue, 20 Jun 2017 09:38:11 +0000 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNFba-0003X0-FM for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2017 09:37:53 +0000 Received: by mail-wr0-x229.google.com with SMTP id y25so49123428wrd.2 for ; 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=IlI0KN/aTLQuzLlFSnlvCzrzJPwDwWlADMACFblQzucqirwPZWrQinXDzALn0PN59c iCPklnKhJEQVdpSODgNaROOEGbAKY0aTudegVE6QpYQywKp61zUxp9YFEi5j6HH4hteB VBoou6jpF0hb+imkZTu60EJr+CLzBy28VoJpPDpPLZsI6kwGaGgkZcmoHXmQwUcS6d73 n5Y03jCvvdAd7gfTkSKJ3QS/DPpzlNh8VGAv6HmL+//z46S3yBsNRV24f+balgUYMXHi 4+43Qd4wewOw0q1294SVihVro4aDu+2PFrGJ6a9hF16KDYLKtmvdg+xgAx8bAr267KLa i/mw== X-Gm-Message-State: AKS2vOy3T4ZdX67jfb2ALfJxNATPEeJgKv+5GCgltojbBwJ7rdCEI3CR RncGhW024sKh4VTv 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 To: benjamin.gaignard@linaro.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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170620_023751_061136_28ECD1DB X-CRM114-Status: GOOD ( 12.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alessandro Zummo , Baruch Siach , linaro-kernel@lists.linaro.org, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, Alexandre Belloni , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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: Baruch Siach CC: Alessandro Zummo CC: Alexandre Belloni 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(-) 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,