Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109924rdg; Tue, 17 Oct 2023 05:09:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwc4mtnTiopqeoQ0VMN3ZhfuxQkhSKj7rjDVZjrfelPuda4CyqmU6DNJf8y1+kT/DV2ffN X-Received: by 2002:a05:6871:5d4:b0:1ea:7f54:77af with SMTP id v20-20020a05687105d400b001ea7f5477afmr2449908oan.10.1697544566851; Tue, 17 Oct 2023 05:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544566; cv=none; d=google.com; s=arc-20160816; b=RPSowVwvx8W+nKZMoCOHujAVLT4JRLxykVlH32aDL4nZCbus7R5EjJG3yvaqj8Ecam UH8HEQKDuNdxgR84Wzi4gY9GFZzuXmanJJ4P0I5/2vlfNWz+nFTl8x2vdxd4c3vBK5KT LCMwyx6UNOz3LzwUCMMURAhgRvj6AX8Rj1AS97GJ14dA+SDEyMeFunU1UhkFhn2Klc+G s/HtbqlMWDxrW/qP+Ve41ryYuBkVP+Lq6gb+P5tNdjtkcRhJAKkNwOiGF5I3x4Dd5WtS 0DfbWgjY3og59xFakjA9h/g7rGND5HYd64xX6u8EPP1njM9yZO7kpEVJ0oLgNh5nqZiX bBeQ== 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=Sva2ieUw3sqyhfm+ru03WFYYbcfP6dT8MTYnbQ+BOb2nK/82IJCheOfIgXaJyhFDsi OP/fVaQKnZw50BabamPuYF+4OdheFHlR4QDzWp4TPw8VttjEfyZVnTbZcLrlX9m6bT5j 3rdzwyia606oHE1RRTu9Gi54bCaMC8oXv2giWN5vAst3De0K+797jJ1XD18YcoheSDQG 1sitofn2nN2zoXMGY1qt30Hkw8FD6HqNhoKcYDZu5kFJVN7qov93o0MZpcQ3wIF5/fLW fqa566egG48JyyRzS8F+KteuGEgnLW8n5L7ff52ekRUH9ZCEKQVNysvzeYPom+32Deid BqmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="DPTny//8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l62-20020a639141000000b005a9abc4b6b3si1600034pge.597.2023.10.17.05.09.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:09:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="DPTny//8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 401AD803985B; Tue, 17 Oct 2023 05:09:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235114AbjJQMJP (ORCPT + 99 others); Tue, 17 Oct 2023 08:09:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232984AbjJQMHw (ORCPT ); Tue, 17 Oct 2023 08:07:52 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2151C270E for ; Tue, 17 Oct 2023 05:05:49 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50305abe5f0so7345230e87.2 for ; Tue, 17 Oct 2023 05:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544347; x=1698149147; 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=DPTny//8JkPTV/yeGyGgKFrQ90kOmCAjy6nNMQFWIAIm9t7EY8tMfrO9bPMN6SPiTb sLtT6enM6yntjK3S4lcKIq8bi0ku8fX/c4UEBMLwZr0zHLvjDNLyQDDNYM11sOKdb3MT DtoiKcjXY9wIqlqFw/7hB49aUetvIk7pYzrInLwMm3pBHjx5g8N2ZjYOkccc+94N3pS0 CIs1eSMVfAo9VPtj1IvPMgHpmqMoQENCNoSaDUW5jObvHwsEWCXvRUVF0icFD/aYMywi X1BlJV+DQs3PG4R+TEBeMpfbejKFdTiYUOOqm83K09YsopPHJ5DvvCZFyD7IKksgr+Qa 029w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544347; x=1698149147; 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=tVg4bpO6GqwZ/DlN8fXH/qpYYjnpbbbJqUsbxiRJCKbpLqPKOBEFIZt8KEYjS4lgNp ywh5eKSifmO6Qt0vL660S2Q7uGNwjDNfR7cfdqWLFstLsFO9IyOTwNX/x2WC5FDDJQMw 1IvTXak5aXbPe+vZpDAx2231HGzCmHv+yD3OvLQBpIdJhdIcnWZX8yD43FztCLow4pob BrklJ14MvpDlttlzZR8ZhTHnvEQRfd5ZoyxF3GCtOU8G4Hqfz/zv+ntpbl/4av6lTDQ5 FsG0NCNrWpJrykSXmHbdQoPlZ7pE7zjxqMnW/2jMPxtREfKhcITrMQ/NyO0n54BsjTaF G6/A== X-Gm-Message-State: AOJu0YzM9u7BkbURIQHCil+khcdw8OMa16L+C2a2Qy0zYS/AJ8oJOrZg W9St/z15cK83GJjUC7rrTpiIcg== X-Received: by 2002:a05:6512:3b14:b0:507:9fcf:42ce with SMTP id f20-20020a0565123b1400b005079fcf42cemr2026931lfv.57.1697544347127; Tue, 17 Oct 2023 05:05:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:46 -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 61/73] pinctrl: axp209: drop the wrapper around pinctrl_gpio_direction_input() Date: Tue, 17 Oct 2023 14:04:19 +0200 Message-Id: <20231017120431.68847-62-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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:09:24 -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