Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4681621yba; Tue, 30 Apr 2019 02:35:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRvwvblrPoJ3yUIB02oKY2UjdTo3iZFwJPBj668+GaHihEA2Y60ClJQmGB6bAf3aAJlrcM X-Received: by 2002:a63:de0a:: with SMTP id f10mr54768030pgg.418.1556616903361; Tue, 30 Apr 2019 02:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556616903; cv=none; d=google.com; s=arc-20160816; b=F24rHVpKyxIYNpGlPse6QZROcpXqjv3TBc5zyboDEeSIyTFCYr9m19gZk4OWr7UUnk /h/guuag7QaMkZGzcJivp9FPV3RDaNyN1f/mDvElgJOAW/AYIOX9Yw7DELckj6eePs77 bdr6aXO/Qme6YiLnpD/Zp2msthBUIcx+o+cskfYpFsejrjX/1Ltbr0jzt9HTzYX76Ca8 BFunk2cWIi7bhiS77bdMiJ0soGdAgPjpDqhjxGJWjAZxzuWRbL7eT8mSB1C/+3VVZxQ0 WXyaMR+DleuAf+9atcRllQymSX7EfLx9lU14UOfW+j1tpBP7u1ELc6+5tsTIbA97dtdY sNGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=baPtvEKTfJpwskinKmqp14gn4aVoAeAMRzMJtsQ9DBE=; b=GeWevm1ZvBYFriJ7ufrNhb/cWqOlFqEGXEXJyb2q1Dmokc+2m0Bj5nYLTxvtlN+qkM eZtFwod2wNGPy+96yFRyyGfrdwLa2JRXomLcUNk/S4qrJITfolCiDS8hnvTrjOIWeWNf EyCfeEcalnTRwGO+yFi3Lbp0F9BGVONiO3YGQGXKjtDySmG9qNTAnMZ2a26VoSYFIjxj sz2hTR/bhMYL7t4vIy8OOL4zX/P2twePouXGi9hf6ZhcvmEe/yKSCe+1VrGySHxarLL7 ZIly4sTh9FuJk7IpmlxrJqHCVFGFprOhk5evoWPys3sS/yNZ6BdH5f1fgWC+PdmX6rtC eNPg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si8033999pgg.565.2019.04.30.02.34.48; Tue, 30 Apr 2019 02:35:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727046AbfD3Jch (ORCPT + 99 others); Tue, 30 Apr 2019 05:32:37 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:49867 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbfD3JcU (ORCPT ); Tue, 30 Apr 2019 05:32:20 -0400 Received: from localhost (alyon-652-1-31-175.w109-213.abo.wanadoo.fr [109.213.14.175]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 5D53B200003; Tue, 30 Apr 2019 09:32:17 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: Baruch Siach , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 3/4] rtc: digicolor: use .set_time Date: Tue, 30 Apr 2019 11:32:11 +0200 Message-Id: <20190430093212.28425-3-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190430093212.28425-1-alexandre.belloni@bootlin.com> References: <20190430093212.28425-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use .set_time instead of the deprecated .set_mmss. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-digicolor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c index e6e16aaac254..ed2fc1adafd5 100644 --- a/drivers/rtc/rtc-digicolor.c +++ b/drivers/rtc/rtc-digicolor.c @@ -106,11 +106,11 @@ 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_time(struct device *dev, struct rtc_time *tm) { struct dc_rtc *rtc = dev_get_drvdata(dev); - return dc_rtc_write(rtc, secs); + return dc_rtc_write(rtc, rtc_tm_to_time64(tm)); } static int dc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) @@ -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_time = dc_rtc_set_time, .read_alarm = dc_rtc_read_alarm, .set_alarm = dc_rtc_set_alarm, .alarm_irq_enable = dc_rtc_alarm_irq_enable, -- 2.20.1