Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3547795rwb; Sat, 12 Nov 2022 07:43:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf6BOV/6BX1ESRO1Jz3sYl/QuDfwEuZ1AYcPEvJVBtx+7D+8XYOnUSxSSZn6XynfjK6OMF8X X-Received: by 2002:a63:e603:0:b0:473:e502:6c12 with SMTP id g3-20020a63e603000000b00473e5026c12mr5919831pgh.159.1668267781753; Sat, 12 Nov 2022 07:43:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668267781; cv=none; d=google.com; s=arc-20160816; b=L8/rQYkNMWtld9KLPALwh312kRMTxibtYEiC87PL91x3KmoqTr7R91LQANy4LH7P5d dxHCcdSeFUjcjuFBGYtx7a1+VdEfKBpyscGpp0g9euw5dzv0xMZJnXndvApyjyrljgaV Xo+qi4JEchUFyCvyRdNkhM4iw2xy0nvFcr7t4YqognYiJaomu3Wrv1J8IbU60Nfu+yXS CaIvzmlQvF6OtIySPzTx81tfKljkhOBMPduuprv9mEqA3HJ7W8c+BQLrWczmtmpCuyMT 17HJz3UavekecC1Ln7KVQ2bP+RsyIDTHQ/exQpgbJ7v672TeRrCPML+VVq9EfXAtsZeC wb4Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=g6cp5m3ImBZ7KTnMToLeEU95rkG7mRiWgSX6Mnz0HUk=; b=QZEqrNGchRpAPMkxjZ7PaYI4Y9q6F23f1X5FQYAS9ofMDMHzjUYVhbNO01pKnykg5+ KN92JEyQbiB2MHKvZQ3tJtbHtSsjPgq1nvVLNVk65ZxGE8kj79LlXS1K8+gN3YC6rkW4 3m6raCgBBQtxtL3WtzlItUDD+XDaPIQvde8o6/WWPTodCbJuz1YU/Qltzl7NopVEGVtC 8NRK9ruxfEVaH8BMDPZVH1q+Qf5pO8RVvr5DBux8UNUef8l0pQKi6asnZjlinFKG91NK oMpcP1HRzbJ/1XcN3CwtoJ7ogF2VYxnh6yJ+4sSiH8qrUuEM38U0m9I2/BNk2n1U0gHp utuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="H+Nveg/m"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd9-20020a056a00278900b0056e2b0193bdsi5735473pfb.141.2022.11.12.07.42.49; Sat, 12 Nov 2022 07:43:01 -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="H+Nveg/m"; 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 S234992AbiKLP32 (ORCPT + 90 others); Sat, 12 Nov 2022 10:29:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231404AbiKLP31 (ORCPT ); Sat, 12 Nov 2022 10:29:27 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 496EFC773; Sat, 12 Nov 2022 07:29:26 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id t25-20020a1c7719000000b003cfa34ea516so6745535wmi.1; Sat, 12 Nov 2022 07:29:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=g6cp5m3ImBZ7KTnMToLeEU95rkG7mRiWgSX6Mnz0HUk=; b=H+Nveg/mN09Lol3Pj5k/TN2le7XBMJrVS9lbYMnNLnVf7GBxofVa3Xw9d3DVFQfVhG 9tkWET348ZrYG9lTdWhZP/eUdc5tJPvvqxF7YBw2xzddToJ9V0zvlDGR0rK/Xsne8wQq rctCQOJjlsdZ9+q/K/Q9vpP3sYcHXzkynAkFwmGKrl8mXPCcL7ZhGc01tKnBz5FZOYOE lFb2Z4FhCv5inyRZlLTY60b05+7wxKV3a03Z10xrV8SV3yfa5h4bx4K42Mdap269JdQl iZP5T9WAqergBfAQ+6NlwsLVvfewREtVz7iJsJQpGol9kp8fQG59oBFlBGsSz79IYneA knCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=g6cp5m3ImBZ7KTnMToLeEU95rkG7mRiWgSX6Mnz0HUk=; b=si0iFLTB0rAgFLM6H71QuFiFQipxuuqhxsSltwg02UAGOlvJgeTehLTEHtU3W3gdNU GvxVG7qmZhL+VzRonsJOHLBGg5bcCiBSGvkMtJdUY9qzmGSY4IKKYb6dPU6jOY0ioaHM ovhO0pJagx5BKxYgmka47X0ddH3OqoiSsYoBMrdQwgTgiHAp2V6piBQgt4HVXqXu6a6w 5Zuvd01Sba5jjIT2reyVC6JNGRe67dHQC36ybVb+Orm5o0uLHpOpovxEraoH1ovdq6UV eGYCwPQzgFZwn+tmDdAkNJUZXCF6C7Agg6zl++/f91uRjWrQw9aLdMm+9EthyyIniGYh Ohbg== X-Gm-Message-State: ANoB5pmXLomNRfdLvGNKXb9VKolsVax+nXUKl1Lg/Jf8AksW5nBS9pyY Qri7YfCPAP1fzWMR5k5dXlg= X-Received: by 2002:a05:600c:348e:b0:3cf:6e78:e2aa with SMTP id a14-20020a05600c348e00b003cf6e78e2aamr4154643wmq.121.1668266964921; Sat, 12 Nov 2022 07:29:24 -0800 (PST) Received: from localhost (94.197.38.186.threembb.co.uk. [94.197.38.186]) by smtp.gmail.com with ESMTPSA id h4-20020a05600c350400b003c6f426467fsm13646045wmq.40.2022.11.12.07.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:29:24 -0800 (PST) From: Aidan MacDonald To: michael@walle.cc, linus.walleij@linaro.org, brgl@bgdev.pl Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpio: sl28cpld: Replace irqchip mask_invert with unmask_base Date: Sat, 12 Nov 2022 15:29:28 +0000 Message-Id: <20221112152928.42204-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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/gpio/gpio-sl28cpld.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-sl28cpld.c b/drivers/gpio/gpio-sl28cpld.c index 52404736ac86..2195f88c2048 100644 --- a/drivers/gpio/gpio-sl28cpld.c +++ b/drivers/gpio/gpio-sl28cpld.c @@ -70,8 +70,7 @@ static int sl28cpld_gpio_irq_init(struct platform_device *pdev, irq_chip->num_irqs = ARRAY_SIZE(sl28cpld_gpio_irqs); irq_chip->num_regs = 1; irq_chip->status_base = base + GPIO_REG_IP; - irq_chip->mask_base = base + GPIO_REG_IE; - irq_chip->mask_invert = true; + irq_chip->unmask_base = base + GPIO_REG_IE; irq_chip->ack_base = base + GPIO_REG_IP; ret = devm_regmap_add_irq_chip_fwnode(dev, dev_fwnode(dev), -- 2.38.1