Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109963rdg; Tue, 17 Oct 2023 05:09:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPW3sCODlqnL0rLsUbsATBwirRsIZ5iabiYLhlL2UYMW0vD8B1f05P3xf7l+PaJMI0165U X-Received: by 2002:a17:903:10b:b0:1c9:bef4:e11 with SMTP id y11-20020a170903010b00b001c9bef40e11mr1863173plc.46.1697544570156; Tue, 17 Oct 2023 05:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544570; cv=none; d=google.com; s=arc-20160816; b=xarzruWpozyxJxMNSVuqSwULJP/xQ7/og29ybE+wRvdApU7zBoQrVNRZvfb+aDUg6k sZaQs5gU8R64UYO+Cpv25/gyIZGmGbfsAEGUzuGMK4Npd1R8Qjzrv2uKVVM+B6Nn3QaA SHoccce01QQ5zEBHzDePID+S/j6OIi08c0BeYKMpYCVWndhsjyQcYj3M5r4DLdNjq8l2 MJ0ZTMlDFs04gzFm0m0eHaeFrC0sDTulZ6Bd2NGGQj1d3prOUJoRPLI7J7S+J2sBymoo B68K4fGVQwxqEhncADQe11IC+k3yqw4hehY234ICS6nkv/9zKDHkXRy6U6+EWuz7zHvH 5CRQ== 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=jFr6QY4eYLHOc0l8IDUIWTqpQdT11W1FKFRdkIoRPQg=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=C3JEn9lbax11ikHAZ8GWCLKm0s8VtuDysakr6ekmDw/Ta/b6EZNpG6inKhKaV/dGzz wVy+vFhAzcwTiA4DtGUxEeWzFKoG9lmMkI0H6utTYXPjJrKnjmvV+3RwlnPTC0bZH2Hv Xm8BFW8PFI+P52UB2r33glVeDD3Ig5NmNx07m14J6wB4+VoYKLgLPnsblOwumGCshter /txUAYl5WbsQt1x+WFXh+jCzC1uDu0n8F+mEHHXYd6sZkODjPCZJipVmra8yZB2CBwB5 zGGdKOhtsmH8d1yscCfprb8NdT4JMnoz2oLI/7ETYOoCk+po3EoMnbRUw/TdbHfjAOMF Zvbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=ghgZqeTt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o6-20020a170902d4c600b001ca81fa0661si1654753plg.508.2023.10.17.05.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:09:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=ghgZqeTt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0FD0F80C65C1; Tue, 17 Oct 2023 05:09:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343752AbjJQMJX (ORCPT + 99 others); Tue, 17 Oct 2023 08:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343630AbjJQMI0 (ORCPT ); Tue, 17 Oct 2023 08:08:26 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 510142D50 for ; Tue, 17 Oct 2023 05:05:57 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4065dea9a33so52642295e9.3 for ; Tue, 17 Oct 2023 05:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544356; x=1698149156; darn=vger.kernel.org; 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=jFr6QY4eYLHOc0l8IDUIWTqpQdT11W1FKFRdkIoRPQg=; b=ghgZqeTtDAKbSvx4tlkoqTWvfg8HtDmDOE7aIMpAFs/VqnbaIEWd+uTED8FKsJx4k7 7n7GTzedxzwz2UjuWDYUNbbXPZUuPDBV6jbHyjTwon0N13TdugHEujo6TMwaU7qRfzfO dIzMGxGGVIRE0lGaHvsTbnjvRgkeK1yoWlsHEw9Q/Waf/KntEfQ4tALF97xYyDUAeVqG YRp+VwMvmyZvlSVxVqgzKMjJQauY5Xvt0/yEGDlMgdZUz8gXpFBIwgyznPVnluZZYbbR oWSkYkpP37/IuGIFog1XK5JiyRfNKMaybLjeJMznwx7ihjleCXGJ1MhP3l3XwwSuIB4S jP9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544356; x=1698149156; 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=jFr6QY4eYLHOc0l8IDUIWTqpQdT11W1FKFRdkIoRPQg=; b=uO7aSVw/FjYqjvOq84NGe3LF+Z2gW2g/OUkklRvtTnx6uiTX+xbRPMwio7/7cW0WyW FOs03NdeokytDJZMXmVg8jEEgwMhnLguaX+mw2LGeUVBQUghWeyEIbHq+nDapYxAGdM6 348qgVfWpzNNhNQfTsTfLlAY2WR8ciBDmnOvnw0d7Qd2fNyrODHRarZ5kEm+PM3vmD7d FDCWlxsRMnjbevxdKPVVFCmjvQmamBHQNX3CpULoxgEo6OVWula+gUOcZ4sW5sTXUeRy dMAIerQjYVx+DfY4gPrpR0t+3s726zBNm9YX8S/d6zYlXRLD3Ia36PgrWsGl9NCKX0wb jKCg== X-Gm-Message-State: AOJu0YzD+OBgnWBQ2+3z5nP4vonomZ0fK2v+mgcGRLYtY5WWKZMkmA+a cKb1vnFN6L2lGsPx9sM4TVyDug== X-Received: by 2002:a05:600c:4f15:b0:401:bdd7:49ae with SMTP id l21-20020a05600c4f1500b00401bdd749aemr1687396wmq.18.1697544355901; Tue, 17 Oct 2023 05:05:55 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:f1ee:b000:ce90:ed14]) by smtp.gmail.com with ESMTPSA id a2-20020a05600c224200b00405442edc69sm1353859wmm.14.2023.10.17.05.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:55 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 71/73] pinctrl: nuvoton: npcm8xx: drop wrappers around pinctrl_gpio_request/free() Date: Tue, 17 Oct 2023 14:04:29 +0200 Message-Id: <20231017120431.68847-72-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231017120431.68847-1-brgl@bgdev.pl> References: <20231017120431.68847-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:09:29 -0700 (PDT) From: Bartosz Golaszewski pinctrl_gpio_*() helpers now have signatures corresponding with those of the GPIOLIB callbacks. We can drop the wrappers. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c index 140fdbbe8458..a377d36b0eb0 100644 --- a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c +++ b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c @@ -205,11 +205,6 @@ static int npcmgpio_gpio_request(struct gpio_chip *chip, unsigned int offset) return bank->request(chip, offset); } -static void npcmgpio_gpio_free(struct gpio_chip *chip, unsigned int offset) -{ - pinctrl_gpio_free(chip, offset); -} - static void npcmgpio_irq_handler(struct irq_desc *desc) { unsigned long sts, en, bit; @@ -2388,7 +2383,7 @@ static int npcm8xx_gpio_fw(struct npcm8xx_pinctrl *pctrl) pctrl->gpio_bank[id].gc.direction_output = npcmgpio_direction_output; pctrl->gpio_bank[id].request = pctrl->gpio_bank[id].gc.request; pctrl->gpio_bank[id].gc.request = npcmgpio_gpio_request; - pctrl->gpio_bank[id].gc.free = npcmgpio_gpio_free; + pctrl->gpio_bank[id].gc.free = pinctrl_gpio_free; for (i = 0 ; i < NPCM8XX_DEBOUNCE_MAX ; i++) pctrl->gpio_bank[id].debounce.set_val[i] = false; pctrl->gpio_bank[id].gc.add_pin_ranges = npcmgpio_add_pin_ranges; -- 2.39.2