From patchwork Sat Nov 12 15:18:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 19199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1316987wru; Sat, 12 Nov 2022 07:21:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7GDWLY1OodmA5FrfdkSevJ+Npdd72bGHSXXaoxqaQLvNNPcvFeGOIbihviZvx6Ls0OoeWE X-Received: by 2002:aa7:c247:0:b0:466:1bfa:c39e with SMTP id y7-20020aa7c247000000b004661bfac39emr5597333edo.240.1668266469676; Sat, 12 Nov 2022 07:21:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668266469; cv=none; d=google.com; s=arc-20160816; b=BijfCXOFGsk3Ol5w01j0Wgxgk9nC24d2jPtGMk2V6851/E697z4WJUVd7DYT6NAOBb 7sruJcfBSuPhb5dOPXsLS7HDpXeRBz520twmUm/ewtx9bRtyrLN6XwUiIP+OWEzUAQ0j sy5rRBFkgu/8xMaf5JL5sfoEwlCG6BuDw+t/gPb/XtytMYT+Cph1ypbdqsipWvhvGEHz m9YVbJgxuvXhvKWmwfSNWg1Udf/CUmQ/byQMB714nOIbHfQ3BooSutgqV/N2RtKBwXmB Zyyr3P04Ch9YeDuImaj2abE/d35HOhVUmJE2/MDRQ5ZtA92TDhj3CHuEiUYQ9bjp6Q7E UTHg== 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=RzfFarMWnyAPcL/j9BLrbh9/EDR9l6mYdqyx4d7GlDs=; b=epP5IxFWfaKwqoufl9Dv39zNAy24N+UDCVV9fRcp5h1FG2p5ZctFZuz19bZdmHokze OqoYJW0ojrLGzi22L1G3Yn37VUXnKpRmzss05pyCynHiJvskpR6YBgScnVtNwD4en/2S YisVMfxy8Jm1600yL9NWVoHYdkwz2mrQKtLvCc9tOjPYDEPExmqgySj2HdGxfqrgjhNo zurmGz0uov52KOy7+wAb7/ZoYIO19gjHUVe4PUNueJwquRR/tv1D9NCSD6gK1KoWFWhj p2rLeExJaORALrCBrJzk+Xx0csLi6VodMGpASsYmNJSLp6En4BiURd1RiaeeNbU9LAIh TBtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=i6Xha0IS; 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 b15-20020a056402350f00b0045945eed10asi6196611edd.5.2022.11.12.07.20.46; Sat, 12 Nov 2022 07:21:09 -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=i6Xha0IS; 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 S235001AbiKLPUR (ORCPT + 99 others); Sat, 12 Nov 2022 10:20:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234864AbiKLPTz (ORCPT ); Sat, 12 Nov 2022 10:19:55 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D186912AC1 for ; Sat, 12 Nov 2022 07:19:44 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id i82-20020a1c3b55000000b003cfd36eff5fso743220wma.3 for ; Sat, 12 Nov 2022 07:19:44 -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=RzfFarMWnyAPcL/j9BLrbh9/EDR9l6mYdqyx4d7GlDs=; b=i6Xha0IS/gQNLKfoEiaGh+pMe0XQk2nRYv1lnAVGxx5a44I7wnJClCJgg4n4nnVKhm AIG+wpTP1h9KaH1JGqdy7Fl3I+iD+hTPYO54epiDta9+c5Vyd7YaH8wI5BhuRP7AyuMZ g7uf6cyj/+YuLWOJXwjcfV3ZNXbiX3ho7mWJcvCLOFn81+Ki3+H9MWHa77Ite+4AUUUu o0wD7mAPe+hgNsIO1fM1E7Lu5zNpOFAcwo31x6n1lXbvomSAqK8VcLANOOTf8i+bWXhf 89rF1XkweKVV11jgQZ6kyyLzRNbwp8UjBpoSF0dxk59UfCJdOObcbD0TOBMllXr5YXdX /mZQ== 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=RzfFarMWnyAPcL/j9BLrbh9/EDR9l6mYdqyx4d7GlDs=; b=6jOlQ6F/nXfGnAPZ0yY2g34XVjumyETkgLiTe84DzdHKyWtM+UINVOSp+zP61FGHqC 3nMOw4WuAN4FFfdRsiC7XOr8GtGMiQkSkGKMm89xiIxdTnIXqW4dIM+LQ/r92lu7aloX Y6uBAJZ3MsP9Eosh8pe2Fd8MUI1LQef0a34b6D7prON/SB15kEayrWQAm1ZKTprqHqYk Yde/qXWeK1c6ygu6ePidg5eEFtl/EZUhsPQFCLylFDtMmxvGyf1EA8aDwxuUwSpMFfWR Ae4jTm1+1bDfKqhoJajRuuVCydmAjbmbwY2RZcrPp+w8rUXoh3AXCn3PwiuVybLXhJ1m nwvw== X-Gm-Message-State: ANoB5pkNrmTSAwTIBcYFgh7U5B7iBvIGSMocLIpRpY4xpBXVL7kSATxi GKdCc9Tgs0vXk73icj04McY= X-Received: by 2002:a05:600c:2251:b0:3cf:a511:3217 with SMTP id a17-20020a05600c225100b003cfa5113217mr4098434wmm.205.1668266383299; Sat, 12 Nov 2022 07:19:43 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id z25-20020a05600c221900b003c6c5a5a651sm6568370wml.28.2022.11.12.07.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:19:43 -0800 (PST) From: Aidan MacDonald 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 07/18] mfd: max77693: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:18:24 +0000 Message-Id: <20221112151835.39059-8-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749304181400731528?= X-GMAIL-MSGID: =?utf-8?q?1749304181400731528?= 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 Acked-by: Krzysztof Kozlowski --- drivers/mfd/max77693.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c index 7088cb6f9174..7486acc84499 100644 --- a/drivers/mfd/max77693.c +++ b/drivers/mfd/max77693.c @@ -66,7 +66,6 @@ static const struct regmap_irq_chip max77693_led_irq_chip = { .name = "max77693-led", .status_base = MAX77693_LED_REG_FLASH_INT, .mask_base = MAX77693_LED_REG_FLASH_INT_MASK, - .mask_invert = false, .num_regs = 1, .irqs = max77693_led_irqs, .num_irqs = ARRAY_SIZE(max77693_led_irqs), @@ -82,7 +81,6 @@ static const struct regmap_irq_chip max77693_topsys_irq_chip = { .name = "max77693-topsys", .status_base = MAX77693_PMIC_REG_TOPSYS_INT, .mask_base = MAX77693_PMIC_REG_TOPSYS_INT_MASK, - .mask_invert = false, .num_regs = 1, .irqs = max77693_topsys_irqs, .num_irqs = ARRAY_SIZE(max77693_topsys_irqs), @@ -100,7 +98,6 @@ static const struct regmap_irq_chip max77693_charger_irq_chip = { .name = "max77693-charger", .status_base = MAX77693_CHG_REG_CHG_INT, .mask_base = MAX77693_CHG_REG_CHG_INT_MASK, - .mask_invert = false, .num_regs = 1, .irqs = max77693_charger_irqs, .num_irqs = ARRAY_SIZE(max77693_charger_irqs), @@ -136,8 +133,7 @@ static const struct regmap_irq max77693_muic_irqs[] = { static const struct regmap_irq_chip max77693_muic_irq_chip = { .name = "max77693-muic", .status_base = MAX77693_MUIC_REG_INT1, - .mask_base = MAX77693_MUIC_REG_INTMASK1, - .mask_invert = true, + .unmask_base = MAX77693_MUIC_REG_INTMASK1, .num_regs = 3, .irqs = max77693_muic_irqs, .num_irqs = ARRAY_SIZE(max77693_muic_irqs),