From patchwork Sun Jan 10 23:17:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 12009555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52DF1C433DB for ; Sun, 10 Jan 2021 23:19:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 190D8225AB for ; Sun, 10 Jan 2021 23:19:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 190D8225AB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=eDhk+6CXsuWlwC+5vrtWwFmzVSdg1ugYY7Yt1pnpYCo=; b=hmR32rL/+HbaoJ1wpJMLqRHpuA aP4Gol+1TB5uH+sDxr8gBg1PI7SIcTwfOk7LVQPUAndnDTpr8nOM+qc5LazDxXyanVYhwi9V1pQbV xqaQjLkHP7ZABWVfnjW9Fok7KRlqipR/m+XH+lkyaZIVawhRFjNC7SxpuBPuzTgEBNArqOGq4cgM9 nqLxLuowwa6okTK7Sx16TAYsMVYpy86oK8CY4axQnBDqcNp/lePirugSspUPuAoNUrj2MA0BNRYLK fZmUzebIH8KIMNia7WMnmeRGNKMO4dTqOSP31mIbEFSlNO4LUm7r0J1ozpBkrH5pjOzZ5DzHgfC2u L5gwCwyg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kyjya-0001VF-GD; Sun, 10 Jan 2021 23:18:24 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kyjyM-0001PN-Nt for linux-arm-kernel@lists.infradead.org; Sun, 10 Jan 2021 23:18:11 +0000 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 1CBA71C0008; Sun, 10 Jan 2021 23:17:59 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Subject: [PATCH 00/17] rtc: constify all rtc_class_ops Date: Mon, 11 Jan 2021 00:17:35 +0100 Message-Id: <20210110231752.1418816-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210110_181810_911072_6EEB0068 X-CRM114-Status: UNSURE ( 7.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, This first introduces a features bitfield that is used to handle the presence or absence of alarms instead of relying only on the presence of the alarm callbacks. The drivers modifying a struct rtc_class_ops or using two different structures are then converted. Alexandre Belloni (17): rtc: introduce features bitfield rtc: pl031: use RTC_FEATURE_ALARM rtc: armada38x: remove armada38x_rtc_ops_noirq rtc: cmos: remove cmos_rtc_ops_no_alarm rtc: mv: remove mv_rtc_alarm_ops rtc: m48t59: remove m48t02_rtc_ops rtc: pcf2127: remove pcf2127_rtc_alrm_ops rtc: pcf85063: remove pcf85063_rtc_ops_alarm rtc: rx8010: drop a struct rtc_class_ops rtc: pcf85363: drop a struct rtc_class_ops rtc: m41t80: constify m41t80_rtc_ops rtc: opal: constify opal_rtc_ops rtc: rv3028: constify rv3028_rtc_ops rtc: rv3029: constify rv3029_rtc_ops rtc: rv3032: constify rv3032_rtc_ops rtc: rv8803: constify rv8803_rtc_ops rtc: tps65910: remove tps65910_rtc_ops_noirq drivers/rtc/class.c | 5 +++++ drivers/rtc/interface.c | 12 ++++++------ drivers/rtc/rtc-armada38x.c | 21 ++++----------------- drivers/rtc/rtc-cmos.c | 12 +++--------- drivers/rtc/rtc-m41t80.c | 14 +++++++------- drivers/rtc/rtc-m48t59.c | 22 ++++++++-------------- drivers/rtc/rtc-mv.c | 14 ++++---------- drivers/rtc/rtc-opal.c | 13 +++++++------ drivers/rtc/rtc-pcf2127.c | 11 +++-------- drivers/rtc/rtc-pcf85063.c | 11 ++--------- drivers/rtc/rtc-pcf85363.c | 8 ++------ drivers/rtc/rtc-pl031.c | 8 ++------ drivers/rtc/rtc-rv3028.c | 11 ++++++----- drivers/rtc/rtc-rv3029c2.c | 11 ++++++----- drivers/rtc/rtc-rv3032.c | 11 ++++++----- drivers/rtc/rtc-rv8803.c | 11 ++++++----- drivers/rtc/rtc-rx8010.c | 13 +++---------- drivers/rtc/rtc-tps65910.c | 15 ++++----------- include/linux/rtc.h | 2 ++ include/uapi/linux/rtc.h | 5 +++++ 20 files changed, 91 insertions(+), 139 deletions(-)