Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2677548rwd; Fri, 16 Jun 2023 06:58:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+ttuavVyJ8bUXlnxGMZSqcCjdVBZ9QA+qVcZb3Z8S9y5edAi93nG+Rc3sT8hlBLXP3/M+ X-Received: by 2002:a17:90a:4b8c:b0:25b:c05d:d217 with SMTP id i12-20020a17090a4b8c00b0025bc05dd217mr10270065pjh.18.1686923890670; Fri, 16 Jun 2023 06:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686923890; cv=none; d=google.com; s=arc-20160816; b=YtwhQNHOaK578MwLqaq3nUGtNDnhFpuklLHyxFC7yoPFqtOBo6onHdoVcFHqF9rTdY s6XWmpMGLxpFlItg7gSD/hOsJYRdRyFXvYfpjCsCl9JqEAec9UNdfenAb7yaQSUGgZ/P y2Sdq1qloJPRhzUVPiZARyqvW7HRXalYtDN6kLzWBLXJ/lJiVeDeCUbyqE0arRk4N+2T qMJg9MDNj139EGZLpjg2hdfyC5hBzZ6Fdoou3CQba6oc7iB0L6CN8awSUOysBCralF0B ARDm5xVZdFOevyBVDxv/G+KZsapzYf6KFlPUgqyPV/U9MGjReSAvBvRDF5EL6rhw+VGr BJIw== 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=ZNvqc0skQjUhj+fThcHLunWg4rdHTI03yC+1/FMhd54=; b=nw9336ad9viXMJ35b0RHVKE2+EQ9F6/4obAKmdq0tvnsD5GSsgGHH00mAh4PG7BFsT m+TrwfuKDbwnA2UAyh6mA6U4+1V6ENnQWoGzv3uVnF/3CLeJaLtuSSTUg0eXFwjRp7cb h28pe3P0mhiPEw66AppXE7+hAWK+2G/H01zw/6dZ2z/f/uJfgYSIB/XIt58vlJW33sjm YEV3ec//3WiRe/EO04YDDci8vAP1wHMsLdt02p5KEscCqobLNyIqWl16NWXMxMjxFjUW yGd3XEvgmnvVVF36GSAkDQGdBZ8oddFE+ldjtM2HPGxHOMgYx+kcehPS6VY8PbETlu0Q winQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fnkgKFYw; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a17090a035400b002593aab997esi1604348pjf.91.2023.06.16.06.57.56; Fri, 16 Jun 2023 06:58:10 -0700 (PDT) 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=@intel.com header.s=Intel header.b=fnkgKFYw; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343743AbjFPNxP (ORCPT + 99 others); Fri, 16 Jun 2023 09:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229953AbjFPNxL (ORCPT ); Fri, 16 Jun 2023 09:53:11 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CE8C2702; Fri, 16 Jun 2023 06:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686923590; x=1718459590; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+QO+MDFPjf3DM3i+P0PsLuvBxZJWReEj53mswRyVrnc=; b=fnkgKFYwNvlrKbqGyeEmy8EOTtrCTtO7bawkhmtxDXgk40L1djVzEfDi YEK9/pY+EqW4dDraKW9jZxp3rTkeHmUMWMm9fc/UnT6m07t20jFFOdm1a S2YN3yLOkVTiJewPMvIfN6Y6XY5nvRFL5vu0mzpGRjdvPyX9OrNGiPqVf 3eb25jxgT0oMvWFDxnakPsHZGMUvz+kAm2TRuWxWUyPri7bHfq4JRy4d7 QWmea3Nwiy3NFRwizzLbz+qLvihS0wion3HK6gKdF+h6+dEHHHU5jhkWg qEhQiWkCrO0PA48rh/tO5qFMpAvSy2tmAOtfGPz/iyp8h5xy4YetwwLzH w==; X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="339546529" X-IronPort-AV: E=Sophos;i="6.00,247,1681196400"; d="scan'208";a="339546529" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2023 06:53:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="1043100681" X-IronPort-AV: E=Sophos;i="6.00,247,1681196400"; d="scan'208";a="1043100681" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 16 Jun 2023 06:53:08 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 621C0379; Fri, 16 Jun 2023 16:53:17 +0300 (EEST) From: Andy Shevchenko To: Bartosz Golaszewski , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko Subject: [PATCH v1 1/1] gpiolib: Drop unused domain_ops memeber of GPIO IRQ chip Date: Fri, 16 Jun 2023 16:53:13 +0300 Message-Id: <20230616135313.76338-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 It seems there is no driver that requires custom IRQ chip domain options. Drop the member and respective code. Signed-off-by: Andy Shevchenko --- drivers/gpio/gpiolib.c | 3 +-- include/linux/gpio/driver.h | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 5fb64c7d7473..4b404beddcf2 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1668,11 +1668,10 @@ static int gpiochip_add_irqchip(struct gpio_chip *gc, if (ret) return ret; } else { - /* Some drivers provide custom irqdomain ops */ gc->irq.domain = irq_domain_create_simple(fwnode, gc->ngpio, gc->irq.first, - gc->irq.domain_ops ?: &gpiochip_domain_ops, + &gpiochip_domain_ops, gc); if (!gc->irq.domain) return -EINVAL; diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 5c6db5533be6..6879b5436480 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -61,13 +61,6 @@ struct gpio_irq_chip { */ struct irq_domain *domain; - /** - * @domain_ops: - * - * Table of interrupt domain operations for this IRQ chip. - */ - const struct irq_domain_ops *domain_ops; - #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY /** * @fwnode: -- 2.40.0.1.gaa8946217a0b