Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4842805yba; Tue, 30 Apr 2019 05:22:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIFbCInfWs2AfOLWQipL5RVPeMIFnjgE8W/r6yisZLrQsuga85VKkXy3JOv1nP+SxLBugc X-Received: by 2002:aa7:8019:: with SMTP id j25mr71326297pfi.77.1556626979205; Tue, 30 Apr 2019 05:22:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556626979; cv=none; d=google.com; s=arc-20160816; b=i+NExrGRyNJLxCpXYSo/Ya11jiuSwZ0RGj7j85CHQBjx8f6I0cMV0PdBchvTgnMkU9 zCFWE1wk9fJF2kB6A4spWzQQNM/Fk4BvxT+KuNzRAS3iVm3Sg3xEUcURr0rM4SIDA/7T fir6w8khzdPY54bVIIm47ZS9lnbwMMjL3CO6wQBH1WRKjU1KQeiK3ZGkPlVoaH0oqZf8 sC6fIF4RDWE0a7xZWMizzJDmOOxHWxWBRCRIeccpY2m2Tt/vRODX47s/2BQjGyX5Xf7p Q16FrdbMptBjO3AGUTvtNoGSeUUVKjTmwijqSQfgzcV1Jpkbr5lV2YGp2RtuobbGsK6I oyAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=VplmcUeOUuJJyGNb833SbhEgrHQ3p+3du4vQErtLnS8=; b=L4rEEYD3XKnoqsp3YhdQvJFtvS48Yg+FgduJmijQqp/nbloUj1Q0BMixM1/fUj4rDg NcOWzMTtcLtpWAPiynyNK4oqIiCfkPGECKc13EGWvZ1GZ1WBtv2H5Cxiq0rhHuI/pyQA 1qg6NNm58T61WSGeRXQlcnhrk4330bn9CaE8yRM+CYZGvJnxUln2vSH1O18ervXyJgZi aR8Ck6hQS0RNHc/cKmTHKl0J1zC/iMKu9fylL5Qf9S6m08Ql6pxkFLWWkNQiRTXezAq4 66vRkMSRoHT5gOmz4/5iSEqFtJbVXe95KazWCTjYuCZZ0jX9vz8R/z/06yhCvT1tGe6h cuXw== 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 t21si4526190pgm.438.2019.04.30.05.22.40; Tue, 30 Apr 2019 05:22:59 -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 S1727611AbfD3MVV (ORCPT + 99 others); Tue, 30 Apr 2019 08:21:21 -0400 Received: from guitar.tcltek.co.il ([192.115.133.116]:58381 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfD3MVU (ORCPT ); Tue, 30 Apr 2019 08:21:20 -0400 Received: from tarshish (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 0616244028D; Tue, 30 Apr 2019 15:21:18 +0300 (IDT) References: <20190430093212.28425-1-alexandre.belloni@bootlin.com> <20190430093212.28425-3-alexandre.belloni@bootlin.com> User-agent: mu4e 1.0; emacs 26.1 From: Baruch Siach To: Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/4] rtc: digicolor: use .set_time In-reply-to: <20190430093212.28425-3-alexandre.belloni@bootlin.com> Date: Tue, 30 Apr 2019 15:21:18 +0300 Message-ID: <874l6fu1j5.fsf@tarshish> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On Tue, Apr 30 2019, Alexandre Belloni wrote: > Use .set_time instead of the deprecated .set_mmss. > > Signed-off-by: Alexandre Belloni Acked-by: Baruch Siach baruch > --- > 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, -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -