Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp387167yba; Thu, 18 Apr 2019 03:03:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRUPv3ItUwAkmNC6M7VvVChtJEJAYRbiA+PX6T5/WmAeWsHeEndyJo85SOInfQUkpBzzsr X-Received: by 2002:a63:be02:: with SMTP id l2mr83325015pgf.48.1555581802216; Thu, 18 Apr 2019 03:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555581802; cv=none; d=google.com; s=arc-20160816; b=OWIrrD06mEMjWbs9EIVHFJeWEwfCZI4gc60PVyVELdyTcCVC2kqoX1yct9v4fHvZ/c PfdjFPQYvvuq0kY7+vBdffk09sesLW/lKA2NTRiDCuMoiMDtEAwU8X2y2s2NFI48qxs9 XcfLHo3wE9WAW8urHIz9jCAwaBYZ2qUKE73NUSPQ5gDa+6ek8T5VC6Mm6OwzUl2+IqnH g3Fz6IjXcAFOC3R9yEEh23WUtD3l1e77wdgGf2Cw2emp5CzEONpAMo6St3uHB+e6YM8q cAeuNiSBnCxpRXG/WXiLtAcu4pXfz9jlSogPuCsiX4VSxbNeNgvoyxgFEcsYQlw3tAp+ zCbQ== 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=Qg9Ujrx6hs43tGKm8dWFJv6DO4JceFg/mROFLAFxKag=; b=YwyNMi0GJdJCTkT4Ltt+XdErJEQcQWn5f8erObknC88f5501jksQUojcbQMduV8Dyp HeoL840jOnWBLPgLoiAtevD+ZQQbzXtK2qDNK5wtpsIXYqEwRKTuPAHdjv8Q+SD2xVeW 6xngM/vhVgc6Rncf3OzcUfWQfoQSVrL03w6nW8BMPdStPSGi3LQZ9elsVfFwnjM/eqNf OkPxZqcNivn4VN2Yw4xMt/OjmBl3XDM4qYjbtURYKRzKbZG1N54HGGJ+pHB+6LMekHfW XogE/SVC2ZPRc5Dv3D+HSpQn6gd2aOWqBSiBjSWi1H6QzQxFgc8smenqXNkQO3Y9yHBj OwAw== 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 f3si1964277pfa.268.2019.04.18.03.03.04; Thu, 18 Apr 2019 03:03:22 -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 S2388674AbfDRKBG (ORCPT + 99 others); Thu, 18 Apr 2019 06:01:06 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:43151 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388577AbfDRKBE (ORCPT ); Thu, 18 Apr 2019 06:01:04 -0400 Received: from localhost (alyon-652-1-176-226.w109-212.abo.wanadoo.fr [109.212.207.226]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id B7C07240018; Thu, 18 Apr 2019 10:01:01 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: Paul Cercueil , Mathieu Malaterre , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 4/7] rtc: jz4740: use .set_time Date: Thu, 18 Apr 2019 12:00:42 +0200 Message-Id: <20190418100045.29288-4-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190418100045.29288-1-alexandre.belloni@bootlin.com> References: <20190418100045.29288-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-jz4740.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c index a7e1a382cac5..91ccb45bb886 100644 --- a/drivers/rtc/rtc-jz4740.c +++ b/drivers/rtc/rtc-jz4740.c @@ -176,11 +176,11 @@ static int jz4740_rtc_read_time(struct device *dev, struct rtc_time *time) return 0; } -static int jz4740_rtc_set_mmss(struct device *dev, unsigned long secs) +static int jz4740_rtc_set_time(struct device *dev, struct rtc_time *time) { struct jz4740_rtc *rtc = dev_get_drvdata(dev); - return jz4740_rtc_reg_write(rtc, JZ_REG_RTC_SEC, secs); + return jz4740_rtc_reg_write(rtc, JZ_REG_RTC_SEC, rtc_tm_to_time64(time)); } static int jz4740_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) @@ -223,7 +223,7 @@ static int jz4740_rtc_alarm_irq_enable(struct device *dev, unsigned int enable) static const struct rtc_class_ops jz4740_rtc_ops = { .read_time = jz4740_rtc_read_time, - .set_mmss = jz4740_rtc_set_mmss, + .set_time = jz4740_rtc_set_time, .read_alarm = jz4740_rtc_read_alarm, .set_alarm = jz4740_rtc_set_alarm, .alarm_irq_enable = jz4740_rtc_alarm_irq_enable, -- 2.20.1