Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp601977pxp; Wed, 9 Mar 2022 08:56:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpns7bWsnTzUkEUmNnt45rpiXHYav0A6v4pPWtQAiVLLwHCTNSYZXYLX7Op+Dnk3BES4bX X-Received: by 2002:a05:6402:2744:b0:416:4878:879 with SMTP id z4-20020a056402274400b0041648780879mr345637edd.151.1646844960905; Wed, 09 Mar 2022 08:56:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646844960; cv=none; d=google.com; s=arc-20160816; b=GSNJB7zXEPdNYcEJg6wO4i3dhWoHkpfT8yJ58jQKNCes5hh10MhaVmvk2AQ/gPEpE7 7aedlyaIqZ0scPJYwAdJpP6cF2kuDvuuUVyxnNU2m4jW1AgvGsomp/kn/0FVKQqrX2As 9CQ5lJQ6T2tmzcaKNOZkTDXxLE2gzTN62469n0Vl+5rd81tjI8k29e4h/Y7BPdTaKybN JWjjLJs72riaOVanFTdoyIR1PMrEjGeb0lfv75E875/tdLukk9Ge3phAGDTQDgrT++Ek uU3cXTOYPByTxoneePOHXfGUo5Ucg3x4IZbmp0J0F6l88ZC4XTHGOFQFrGa6F1tbCx5x /XZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3bpzO1Zrq4bsS7f6w00CKRKefBQm8yMNST/gdgB+9oM=; b=IOyhlNYdH4VHE6W8ZpWWnekLHa3iaU6AdH94AjMup+XUdPfx3QV8OUpwZOIAHnOI77 dIJR3aXXV3NKJ976ITnS1LdUyIFlptRdWU5V6oUo9X8HTEvdpD8PKE58JynwnP1ssAiA 5ollVSjo/LGh+iQFCafdQhaTfrCeGKqTS2vRltoVOqA3hIwuNh+40Hz54GodFFqx59II Rr2/7iDr3jMdArZAzTrPoBUCrHuCTobL1t96TJyglf0qUeL7FVmqakUc9wf8wb+qgbjv yaKHGbkXLGafRVNS6K1skZcdU2fCCSkSy5lqwCaug+8fabaQi6t6FVJeeFO7U01CT2b4 Mw5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="OVO/NfqH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a508704000000b0041098754919si1474994edb.600.2022.03.09.08.55.38; Wed, 09 Mar 2022 08:56:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="OVO/NfqH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236699AbiCIQgo (ORCPT + 99 others); Wed, 9 Mar 2022 11:36:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236688AbiCIQaH (ORCPT ); Wed, 9 Mar 2022 11:30:07 -0500 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC090C7935; Wed, 9 Mar 2022 08:23:27 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E87A7240011; Wed, 9 Mar 2022 16:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1646843002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3bpzO1Zrq4bsS7f6w00CKRKefBQm8yMNST/gdgB+9oM=; b=OVO/NfqHIubqWgo85EeJI9t8/iDJ2JZLztzqkI3si4/OXvbZZyvuvmgjtSTHuQrh73fCp2 YmNq7/rAILQOK2S/WGbXOAs9yy+ChFpgOSJn92hOxK+jrTzDa1QM00Rcw/pSFl64fbW3Wz /TrKvfrvEw4vIk4g7Kzavjky/QW+GJOYPfNziw1dt8WZbfxRLlvFzNNxJXPNiPYmNRW6YA HLv93caRImJGAkmFlnTpw2GpN7TeBwdTcHJzqTD3w6aTPwPnrFyY/SGInyA0U0IpNhjqFz uxJtiFiScufQLI+IXSaCvUFy5URAe+3nY5CzHcbo0DIBhl642szIfQpYB0Mw9w== From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/29] rtc: pcf2123: switch to RTC_FEATURE_UPDATE_INTERRUPT Date: Wed, 9 Mar 2022 17:22:39 +0100 Message-Id: <20220309162301.61679-8-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220309162301.61679-1-alexandre.belloni@bootlin.com> References: <20220309162301.61679-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stop using uie_unsupported and clear RTC_FEATURE_UPDATE_INTERRUPT instead. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf2123.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-pcf2123.c b/drivers/rtc/rtc-pcf2123.c index 7473e6c8a183..da0e4066ef45 100644 --- a/drivers/rtc/rtc-pcf2123.c +++ b/drivers/rtc/rtc-pcf2123.c @@ -427,7 +427,7 @@ static int pcf2123_probe(struct spi_device *spi) * support to this driver to generate interrupts more than once * per minute. */ - rtc->uie_unsupported = 1; + clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features); rtc->ops = &pcf2123_rtc_ops; rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; rtc->range_max = RTC_TIMESTAMP_END_2099; -- 2.35.1