Message ID | 20221112151835.39059-11-aidanmacdonald.0x0@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1317058wru; Sat, 12 Nov 2022 07:21:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6itP6XbUh6QDIU5rapEaKUch/nfMqVcnvLo5Akzr6lfiX6KjZ8ZD1Yay5UWksQ/AD1nI8j X-Received: by 2002:a17:906:148c:b0:7ad:f0ae:bc88 with SMTP id x12-20020a170906148c00b007adf0aebc88mr5550533ejc.188.1668266482162; Sat, 12 Nov 2022 07:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266482; cv=none; d=google.com; s=arc-20160816; b=XSyx5qVRsOuXyRjDR9fKeKJj/5bQK8aBsPjlSzt7EgPlh8eTK+qKgIEuyoccVQad+s HYmHrZ4nkkVVCaUM6Tci+b8KPUdSTjLHvGovjNtQUyQ8gSLM0s06HwAFeTxNuY1CE4WZ qXo3U04v27ci6O2sLdsHAg4AtufYfaG21sNt8M+hbO+dw5rBATWPnOAZf81IqTPqPrWB 9Xr2d6tmbeA7BpeTIbHk5wwC0h0Xfhxh0FE+3PzhWgsnhIphwUtc9+hTOBscTcx4VEEM lBMckRIFHz871OtCmQT/o7GU6WW67BRJOZ+BpSZL/a9lbODNgDjJumCTy58p7WzQDjZt XC6A== 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=rYG0lELIkcRCGP8jsgHL4HQoIjFGIvh4hrSttLYXXSA=; b=wy8m4dugIeK26uHMhN978VLrGaZy7hrzVrs4ylTO7VdhyaVm9u/HgkBd6r4CI4aWN1 l193n6+l1yJEBOcQWhkAkjSlhM5/AEF6rFOKzkRNVBC1NJ2q63KjQvdrAKISyYL1o8Gn vIQQPHrYCrVeNQrmIx3/++9bWqoKsslMg1sfHc+PAIZtcNmjoM5G2ll81bPIdSTcJShr moEQvMrUWkDqHzXeYPWtUBZt9cdBFgGdJQ+ekFmlunSlGS8f2dA+wG0LiqJvXIRm0ZwB JDjF23N6r5+Awh8xe7NCOoxbpSfTgW8v5wpjFOPglsI/3DN07pO/v5ImKKny7tBk8IIk XrxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eWLIQMsy; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw12-20020a170906478c00b00730aa841c5bsi4978428ejc.964.2022.11.12.07.20.58; Sat, 12 Nov 2022 07:21:22 -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=@gmail.com header.s=20210112 header.b=eWLIQMsy; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235059AbiKLPUZ (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Sat, 12 Nov 2022 10:20:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234969AbiKLPT5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 12 Nov 2022 10:19:57 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7893C18E22 for <linux-kernel@vger.kernel.org>; Sat, 12 Nov 2022 07:19:47 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id t4so4525247wmj.5 for <linux-kernel@vger.kernel.org>; Sat, 12 Nov 2022 07:19:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rYG0lELIkcRCGP8jsgHL4HQoIjFGIvh4hrSttLYXXSA=; b=eWLIQMsyzKlZKoLwyJYvo9XYbHuX9uT7yE0YZ+4Z7WOpbke8Up9yi/V2ZrY7P8yH0G t57zawvnFxzUA22VM0ORJC5vwC8SMdRfdJSDVnckgh0RiNPh92Of50bx0cQ25CEqkLtH nCgZ6/Um7+wVRZZ8DJcJaqyG7WMSyUkYqJekvswfC/p4Nnmy/RoHuLcTIKPEiCwrJONt 2i53XZjfQND1gJLxyc0gHZ6vg6Wk5Cq1HykLJzLz4bRO+WpDtPxlxL74xNs8nSxdZWv+ x3QS4cefmujEW/XmHabAmy79aWC/NYFtZP8adgDqVOzqAjH/7vLXbl0GlcJp+Bk/NhBR WssA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rYG0lELIkcRCGP8jsgHL4HQoIjFGIvh4hrSttLYXXSA=; b=0Cr2f0bMN4vbbsxMYKZi1lbWEvSdTGjHCgHnEKHdpnzh4WHwK2+g23at3PWCIfAVjP lSV7HJrPR4XV8VMxDIEkmXrYM0Z56LEIYDPHBHildgHTEEAA0JNt+nBTYXc+b6MZvlS8 Ng6RBYbcW2qdaIHVW8dtBfIjDpNDyfXsHmRdnbiCg/IDABfSgnja3MZZiw2USVCtUd7J ntGHbOssM+ZIp1DGVsAo9Luxlf7zwapt5uhoScayqLRSBtdip1TA5dAI8L5a+EHEGZg5 jea+iQgRkg0zRD5jqnOsU+ki7WuK31IYTf6xIWWiyteDABi6CVGG1hlyajO2b68qUYWQ PtcQ== X-Gm-Message-State: ANoB5plqsnsPwROK+O3VnuHvwMZkXn/PY1P1IOH/cy3fYZrSUmAcCW23 lPcZ0c3izC+Ygqncoq7nC10= X-Received: by 2002:a05:600c:4fd0:b0:3cf:5bd9:68a1 with SMTP id o16-20020a05600c4fd000b003cf5bd968a1mr4325795wmq.113.1668266386084; Sat, 12 Nov 2022 07:19:46 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id bx32-20020a5d5b20000000b0023bb7e4b8b1sm4658536wrb.82.2022.11.12.07.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:45 -0800 (PST) From: Aidan MacDonald <aidanmacdonald.0x0@gmail.com> To: lee@kernel.org Cc: mani@kernel.org, cristian.ciocaltea@gmail.com, wens@csie.org, tharvey@gateworks.com, cw00.choi@samsung.com, krzysztof.kozlowski@linaro.org, brgl@bgdev.pl, mazziesaccount@gmail.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, jernej.skrabec@gmail.com, samuel@sholland.org, linux-kernel@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 10/18] mfd: rohm-bd71828: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:27 +0000 Message-Id: <20221112151835.39059-11-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> References: <20221112151835.39059-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304194673017024?= X-GMAIL-MSGID: =?utf-8?q?1749304194673017024?= |
Series |
mfd: Clean up deprecated regmap-irq functionality
|
|
Commit Message
Aidan MacDonald
Nov. 12, 2022, 3:18 p.m. UTC
Remove use of the deprecated mask_invert flag. Inverted mask
registers (where a '1' bit enables an IRQ) can be described more
directly as an unmask register.
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
---
drivers/mfd/rohm-bd71828.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
Comments
On 11/12/22 17:18, Aidan MacDonald wrote: > Remove use of the deprecated mask_invert flag. Inverted mask > registers (where a '1' bit enables an IRQ) can be described more > directly as an unmask register. > > Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> > --- > drivers/mfd/rohm-bd71828.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/mfd/rohm-bd71828.c b/drivers/mfd/rohm-bd71828.c > index 714d9fcbf07b..3c5c6c393650 100644 > --- a/drivers/mfd/rohm-bd71828.c > +++ b/drivers/mfd/rohm-bd71828.c > @@ -413,9 +413,8 @@ static struct regmap_irq_chip bd71828_irq_chip = { > .irqs = &bd71828_irqs[0], > .num_irqs = ARRAY_SIZE(bd71828_irqs), > .status_base = BD71828_REG_INT_BUCK, > - .mask_base = BD71828_REG_INT_MASK_BUCK, > + .unmask_base = BD71828_REG_INT_MASK_BUCK, > .ack_base = BD71828_REG_INT_BUCK, > - .mask_invert = true, > .init_ack_masked = true, > .num_regs = 12, > .num_main_regs = 1, > @@ -430,9 +429,8 @@ static struct regmap_irq_chip bd71815_irq_chip = { > .irqs = &bd71815_irqs[0], > .num_irqs = ARRAY_SIZE(bd71815_irqs), > .status_base = BD71815_REG_INT_STAT_01, > - .mask_base = BD71815_REG_INT_EN_01, > + .unmask_base = BD71815_REG_INT_EN_01, > .ack_base = BD71815_REG_INT_STAT_01, > - .mask_invert = true, > .init_ack_masked = true, > .num_regs = 12, > .num_main_regs = 1,
On Sat, 12 Nov 2022, Aidan MacDonald wrote: > Remove use of the deprecated mask_invert flag. Inverted mask > registers (where a '1' bit enables an IRQ) can be described more > directly as an unmask register. > > Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com> > --- > drivers/mfd/rohm-bd71828.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Applied, thanks.
diff --git a/drivers/mfd/rohm-bd71828.c b/drivers/mfd/rohm-bd71828.c index 714d9fcbf07b..3c5c6c393650 100644 --- a/drivers/mfd/rohm-bd71828.c +++ b/drivers/mfd/rohm-bd71828.c @@ -413,9 +413,8 @@ static struct regmap_irq_chip bd71828_irq_chip = { .irqs = &bd71828_irqs[0], .num_irqs = ARRAY_SIZE(bd71828_irqs), .status_base = BD71828_REG_INT_BUCK, - .mask_base = BD71828_REG_INT_MASK_BUCK, + .unmask_base = BD71828_REG_INT_MASK_BUCK, .ack_base = BD71828_REG_INT_BUCK, - .mask_invert = true, .init_ack_masked = true, .num_regs = 12, .num_main_regs = 1, @@ -430,9 +429,8 @@ static struct regmap_irq_chip bd71815_irq_chip = { .irqs = &bd71815_irqs[0], .num_irqs = ARRAY_SIZE(bd71815_irqs), .status_base = BD71815_REG_INT_STAT_01, - .mask_base = BD71815_REG_INT_EN_01, + .unmask_base = BD71815_REG_INT_EN_01, .ack_base = BD71815_REG_INT_STAT_01, - .mask_invert = true, .init_ack_masked = true, .num_regs = 12, .num_main_regs = 1,