Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp774850rdg; Wed, 11 Oct 2023 05:22:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEef6fkH4Tz9ogtw+sA1j2M6ub/2CV67X6GwJBMqxDLbYlIoBbs9997R9TwK68HZj2/pbUJ X-Received: by 2002:a05:6870:958b:b0:1bb:509a:824f with SMTP id k11-20020a056870958b00b001bb509a824fmr23401815oao.55.1697026949759; Wed, 11 Oct 2023 05:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026949; cv=none; d=google.com; s=arc-20160816; b=AFBaXYvt7/joddyxRL4KM9OhQ//GPEC99JbMzN1cBTD2C8jm/yjAolON4hobS12iAk 4Ufzl4Hjg7EsyNVxAQUiiFoWUzndKUOyqvdG08ScH+xIaEaJfK3pe9OCaJ1XO5sx98JL E/nAQEQunoFSYJt8A33gEl4gUlOv3htC1gv4uHU6MuVqn+53gzU4rGlSxqZN8mxpuq3m 9xE51prKETuPcP1kVIGOFXdQwQulbVTZi8nCZMsm/acqvalUkYYvmyFHVo8Ya6+Bvwns +1+PFdy0TUx0b+MRzs4UYfRcnGL72KGgbeBqhk1t0V7LdAWoCB/31ufqpY+XvDGMQEy2 ZBJQ== 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=hnHBRfmIODSTWCjwzxjk920VZIB9kQcoosTVsaf2qL0=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=XmOS4JpUPZ1Cv9K+bcpP9T03Mh6ZZqCoDz4+J2xmcxHazrFbudeKtL1Tf7Trbp/HZh VfnTGERF0Vdof+Ul9bkp38l4JVN4NKQRBDcnhNrkOmFPQSuqqJTqC8WxiR2FVxud7cqK aqZ9U311E4X99iCNMnvqA8XwsRicgtSxsqKj39nlrZfFzYrahD/5T3R6tFkg4A8+TJKW c4qb7w5XyXp0QB0Z7V8UXFLUwy6g+h7XnLgklnUwmEW10RT2GefMXoGb9tFGA6R6Xzq9 EEaBPP2rPH86dxXSlBjlnkOsMwI5X6e6o6NgmGJeRQ+YsoGo0e/PGw3XcIW8zQ2wJFpI FVGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=v24PuOjc; 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 d11-20020a63fd0b000000b00584b74b26e2si2285944pgh.497.2023.10.11.05.22.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:22:29 -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=v24PuOjc; 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 A798A804921C; Wed, 11 Oct 2023 05:21:12 -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 S235008AbjJKMVD (ORCPT + 99 others); Wed, 11 Oct 2023 08:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234979AbjJKMUa (ORCPT ); Wed, 11 Oct 2023 08:20:30 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22D881BE3 for ; Wed, 11 Oct 2023 05:10:31 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-50336768615so8873752e87.0 for ; Wed, 11 Oct 2023 05:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026196; x=1697630996; 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=hnHBRfmIODSTWCjwzxjk920VZIB9kQcoosTVsaf2qL0=; b=v24PuOjcTzGp0dh2Iu29GIIH7mSwc8A/2AgjDyUlJSPrOePMGqiWAA7AtRuOtt5T48 ZhoqNtiPOIZ2tcmaSezB1FCEZ7VB6hIjRVx3SdyXiBtmTvh7brTWI4zKgNoXG5lR8fNo IDimzhlRIkd5xoxHcPH+oO+3RP4OyEFqQ+CR1W26V4LOZjfT4gvZBIwh1v1ajz7eUZR9 x8Vy5sqWFI/wgs3KwVEJHxTtdN1RVlbiLr+Zp9lORqSUUGOvRPWbid8lzlQBcQnkYGnf +QBAX/dqns8j2NeFA52HDvbyhxWgRRhvnzAq16nEbg3te2ORlCO5gVt2Lefzi2y/F3oG BBAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026196; x=1697630996; 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=hnHBRfmIODSTWCjwzxjk920VZIB9kQcoosTVsaf2qL0=; b=gQMqaA6a9MDfRESyeJxLEJVMq5H9Hk9eNHJlI8wK0EoGbnlu9l5C8mqX4FdCApDkDZ RCCPGAYyoF9KY+k54O/p1rpH88J6d733QViT/9oYQY+xNlpT8vJb3FdjHt4uF5z3BrEJ B81ofc7acMNujlxB75bBtV8LpvjEVYStKcEC48t2VDDm0ohIFF4wy3gGl2IL1pZh+1JP RfVrD9A+oBGyGYwiXi7ARSi0DI+KYRZHEhTqeyUxCseuJVCJP/gJVMyvP21iwwZ3MSTE 1aB9STll8JTAbL/nFmWwox0YMbRhzYVxC27kWsAmdoduyHg6Gri174pRoNQld+SCyHkc cbHQ== X-Gm-Message-State: AOJu0Yzw+PuVwWM7HNsJC+fYEz1W9luSx75ZBJ37kH5IBTm1lWWXf3Ok 7Xl5TYNv0wQV+Yag8cTeDg5rvw== X-Received: by 2002:a19:771e:0:b0:503:555:4000 with SMTP id s30-20020a19771e000000b0050305554000mr15204373lfc.25.1697026195947; Wed, 11 Oct 2023 05:09:55 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09: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 v2 53/62] pinctrl: axp209: drop the wrapper around pinctrl_gpio_direction_input() Date: Wed, 11 Oct 2023 14:08:21 +0200 Message-Id: <20231011120830.49324-54-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,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]); Wed, 11 Oct 2023 05:21:13 -0700 (PDT) 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-axp209.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-axp209.c b/drivers/pinctrl/pinctrl-axp209.c index a6eb3b866a23..2b4805e74eed 100644 --- a/drivers/pinctrl/pinctrl-axp209.c +++ b/drivers/pinctrl/pinctrl-axp209.c @@ -124,11 +124,6 @@ static int axp20x_gpio_get_reg(unsigned int offset) return -EINVAL; } -static int axp20x_gpio_input(struct gpio_chip *chip, unsigned int offset) -{ - return pinctrl_gpio_direction_input(chip, offset); -} - static int axp20x_gpio_get(struct gpio_chip *chip, unsigned int offset) { struct axp20x_pctl *pctl = gpiochip_get_data(chip); @@ -474,7 +469,7 @@ static int axp20x_pctl_probe(struct platform_device *pdev) pctl->chip.get = axp20x_gpio_get; pctl->chip.get_direction = axp20x_gpio_get_direction; pctl->chip.set = axp20x_gpio_set; - pctl->chip.direction_input = axp20x_gpio_input; + pctl->chip.direction_input = pinctrl_gpio_direction_input; pctl->chip.direction_output = axp20x_gpio_output; pctl->desc = of_device_get_match_data(dev); -- 2.39.2