Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp769785rdg; Wed, 11 Oct 2023 05:14:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+LA90/Ti77IUWk3FUr2SHxIh/Gh8CUIRZFCpEGTpcMCVoduZn7ownr3JoJXo0trX40Vrq X-Received: by 2002:a17:902:ec8c:b0:1bf:6ad7:2286 with SMTP id x12-20020a170902ec8c00b001bf6ad72286mr14239802plg.43.1697026475506; Wed, 11 Oct 2023 05:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026475; cv=none; d=google.com; s=arc-20160816; b=t1ne7WV1ifuHAG760KnhAOLN+P/2xYVxTAFvFKqonLNFPpz2M6ec7W1Uy8J4IUGdGG p25Ol+oEp2BqJcHxPHiFZqD/mHVVIoO0Ad1EA5Svd7RRYFM6MjZDzo/gQvhg9e7Nm99c W3fDSlGnDFLRdLFmcHoXd8gnn3OdWMlTaSuhuKjjPJTItRgmAFaIsCB8Czly7HsgX58J x2iDF6S08CaYj+w0z/4jLpEUpE5Qw12vSnl5dyPeQbA6hpiEMRic6i3oLsU/LwmMCHAa wK9xL2PFgGgiWwiRFTxua/hlTrLOONhxPzNeB0u4uNW/faSGtSs3MfJYT4PvsJ/QwTE6 01ug== 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=qZqsH4ukWg8dp7mZFhLrP2ADJHJW7V1bq0dpTxn7+d4=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=01f8Rj0i0gL/0PqOTAwvIXLj26NZHo3RRLu8HL4S5dpsbk+c4IegZACbzf5eL/nWlo EhPxg7yYEhvKGYxoXkcWGhV+ER0wVV61to05ZR7efPDOaJvuwAy3aG7o7MiR2AofH4xj L+aWH8pp/e7ep2vmgz2tdqKMksrG7MwmuVOGHnBlLBBld9px/SkVBVsDHPIK1Sxkw07K bCd7Bel8cqBmm2ff46BMENMEKDmJMrl0+VoWq6qptOop9id8hd//CsE7E/eF32h0GyQq ZA/OTY3my40vSFmQ8CsegoWyjqlnD8tntyknhWyy8U7swqm37L2WHb0S1OBjoVHy4GgY eFzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=jDN+8Vhq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u9-20020a17090341c900b001c5ecff1bd4si1020882ple.603.2023.10.11.05.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=jDN+8Vhq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 3FC8380A4AC2; Wed, 11 Oct 2023 05:14:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346817AbjJKMOH (ORCPT + 99 others); Wed, 11 Oct 2023 08:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346953AbjJKMN7 (ORCPT ); Wed, 11 Oct 2023 08:13:59 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2B67119 for ; Wed, 11 Oct 2023 05:10:27 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50336768615so8873636e87.0 for ; Wed, 11 Oct 2023 05:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026194; x=1697630994; 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=qZqsH4ukWg8dp7mZFhLrP2ADJHJW7V1bq0dpTxn7+d4=; b=jDN+8VhqyHXhzlnpklZZO6feBFgL6OpJluLHRWfrD8Q7Oxzm2sXfIrcVrJZXfbij7E 0qIsYx9/K8QV2jYXYv2XnQMXf5UaLGyTufL5SSucLL4oybZci5MPkFO49q9I10gU0SDW If8E0pvuNIAwQyTqXPTXoLXnzLWg2rmT+JHhhWLa16pxvRRfFCtJs9V6G2bIpQ6isBMa 2xb9wC3N338vpbtbXPDnPCu3Fc7EK7OSiJ9QEp/TTT6CSazZ4DV0Oifn6MxmfhrNr6lo tbX0zLqTzfDfKXR/U2Rh+lBWPpFyqTFuYCHrYsFW+kUNnx9whG1bEi+cN0FXgst5PjdL yW2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026194; x=1697630994; 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=qZqsH4ukWg8dp7mZFhLrP2ADJHJW7V1bq0dpTxn7+d4=; b=w+QnBzw6GQa2IJYNUb0do/OSJxVd/2Qvw9EKc9ToIdjH0mhH6OG5yhDTcDSZh/Srzf D5V62PJU1iqi4B9zGSNhJLkymiCAkD2Ejt8at1I4Id422QIbj1vWWuVuxhxYQNkJ+jGW yevEeCD4rQpYkRvV1ZBW2dGwMWPrWK3Wk9iMXzn9dydos0bpZKQ4ADpubvEBCH8czV9y UbPZCOgtiy5838af9jRc9q8xcsnoMKYKHbF4TL4j+wbvTA7nUc+pqyNOObEd+TlWlyAG h3oJSnlHhwDZzaMsZKY9MmbPbTSPMaNYOK0dPdFqoO7vJtK6CrWHS+KpS+kfUMKirXiC iIiw== X-Gm-Message-State: AOJu0Ywt0LRd5IEticYtjWyAJZtnvNhSZH3Cifrzyk1+QZ9Ox5wJ6eXK 7V3j6xGv+Ylk6J6sQbfTjlYVfg== X-Received: by 2002:a05:6512:308e:b0:503:2642:435e with SMTP id z14-20020a056512308e00b005032642435emr19858949lfd.66.1697026194235; Wed, 11 Oct 2023 05:09:54 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e551:3946:26fc:f94]) by smtp.gmail.com with ESMTPSA id w21-20020a05600c015500b0040652e8ca13sm19012253wmm.43.2023.10.11.05.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:53 -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 v2 51/62] pinctrl: cy8c95x0: drop the wrapper around pinctrl_gpio_direction_input() Date: Wed, 11 Oct 2023 14:08:19 +0200 Message-Id: <20231011120830.49324-52-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011120830.49324-1-brgl@bgdev.pl> References: <20231011120830.49324-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:14:29 -0700 (PDT) X-Spam-Level: ** From: Bartosz Golaszewski pinctrl_gpio_direction_input() now has the same signature as the wrapper around it so we can drop them. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/pinctrl-cy8c95x0.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-cy8c95x0.c b/drivers/pinctrl/pinctrl-cy8c95x0.c index 04285c930e94..adecb7d85da1 100644 --- a/drivers/pinctrl/pinctrl-cy8c95x0.c +++ b/drivers/pinctrl/pinctrl-cy8c95x0.c @@ -552,11 +552,6 @@ static int cy8c95x0_read_regs_mask(struct cy8c95x0_pinctrl *chip, int reg, return ret; } -static int cy8c95x0_gpio_direction_input(struct gpio_chip *gc, unsigned int off) -{ - return pinctrl_gpio_direction_input(gc, off); -} - static int cy8c95x0_gpio_direction_output(struct gpio_chip *gc, unsigned int off, int val) { @@ -814,7 +809,7 @@ static int cy8c95x0_setup_gpiochip(struct cy8c95x0_pinctrl *chip) gc->request = gpiochip_generic_request; gc->free = gpiochip_generic_free; - gc->direction_input = cy8c95x0_gpio_direction_input; + gc->direction_input = pinctrl_gpio_direction_input; gc->direction_output = cy8c95x0_gpio_direction_output; gc->get = cy8c95x0_gpio_get_value; gc->set = cy8c95x0_gpio_set_value; -- 2.39.2