From patchwork Wed Oct 11 12:08:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 151389 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp498045vqb; Wed, 11 Oct 2023 05:22:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/h+XL44yhjRFdVAvp+1VWIBHsvD6ixZZiwzD2upS9pEcrwjB9bD3sprNBVqchjJviTG0M X-Received: by 2002:a05:6a00:2e92:b0:692:b3d4:e6c3 with SMTP id fd18-20020a056a002e9200b00692b3d4e6c3mr22795240pfb.0.1697026945030; Wed, 11 Oct 2023 05:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026945; cv=none; d=google.com; s=arc-20160816; b=JSD9SbnA1kkO6/SojRzeHwlvwLjKdwneeOxt3tx8i/dYo3ekW4NTLRlOWz7vi6LIXt px1rmI22k8jVyctydHKTw0fedQYIfm2XQ9WGXaddaF0rn9nmDmKXbDckp060/g8JaMMS GfJuYShGkzFvBZ8aqj+/+oOqFU51SryawwsQEEoAm0kAeh3BtBdteWW2kmB8UuYEKsMv 8w1Ffbk03iiT8wv0WMQkPyDmXH/DFNT5EnUfuGoetFhKGqWfFLuhicXm53tu/TZ1PILs 0JpYY8a6abIkURQl9tN+cpazRUp+28oQJp2IWhImHR3NC6YupDWZqQcf13/jpjFRwYFB 4PWA== 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=4mWMEsrepSOyp3f33hvoi4PwifoeQU9K1dcaB1U/fvQ=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=tLB2PK46zzF5WKO1lfPDiEUf643WcdhtcYdnorBQSYlJFFz0f36oRt8NcMnH+qGI2Q Y1z+IynpYY6v7gfB1Xrzkbw3lJ9FZVr96Xj3cl+MkC8v1TCETUZJPRURoSmgUj8n/viO UpEox86TZrg5fpfXoleIHFeYbE8r+Zt1OxuH2Nf7SoMRF1oiHe2fCSqWYEYawiJI/FPx lz+Z1yA6FsHcgmYfkpDB5yVi/+f+i7Rg0jYGY1bOnxu3lDJ1rSNEoWmfYWl6EBXHzjq7 2GkNzZOhnJPmllXHFrBtZnLgwIpG44iTTDF2/8k+k7KDZi59uaePe7JdNrD2ufpbNNzG GEgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=FKWovqnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j13-20020a63cf0d000000b0057751b4abe2si1062355pgg.111.2023.10.11.05.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:22:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=FKWovqnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 C24A080978AE; Wed, 11 Oct 2023 05:20:50 -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 S234985AbjJKMUk (ORCPT + 18 others); Wed, 11 Oct 2023 08:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346422AbjJKMU2 (ORCPT ); Wed, 11 Oct 2023 08:20:28 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EE731BE1 for ; Wed, 11 Oct 2023 05:10:31 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-406618d080eso64753875e9.2 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=1697026197; x=1697630997; 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=4mWMEsrepSOyp3f33hvoi4PwifoeQU9K1dcaB1U/fvQ=; b=FKWovqnOwjZuwTs7Aa/tCt/9cS7mrqIGlmBTvjvS07A+MIUSEvjYSFdr4aYew5CYD7 G8HT1jI6OfVrLQB7VDebI42VsgJVrZI1je5W6p0+txUZM81v83fDPlaIMADpmtd5+TPc MfPco/nATr3R3ws5O1fOjqBggG3jfduSUwG5gggmsTxSi9/Eya6k0qA62Y5N6jLn8eVC 2A9xRjGJPso7PyW0q1gbRzsp9a2foTssOWodFhF46jKjCIDgBCIPXG6nVXZGMAe9oh9/ 9ow+TyBG3xGMGp4GeQl2FJynAOHyKwTtJPfViUeRS+w9s6KBgfzauaLBAPSS2NELKq/x QnaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026197; x=1697630997; 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=4mWMEsrepSOyp3f33hvoi4PwifoeQU9K1dcaB1U/fvQ=; b=V7b+bsKJHjm9YvpIZ/jp2pECjGFHoYZ1q6OtrTIuhsHRSldfQ4TKfA/k4JdtVFyWK9 NNyNDgSeKU88bWehz/Rg4O2U0fuzvgjuYighCVOr8zhrZwXuBPbeMUXhOKvfk8Fl3hju ASjgzZGHXMiQ/0f+70MTMNKHgr7TOokoMTazhIfboQeYi7MQ49oZ/G18RIyGF7LcWvdH gxgSPRTRe4YCrkA9ET/1fAjzNcTKUm+hZEzc+jss8MuJURk6vpgq8OLqSYEpvn7ALaE8 kwsW/UNpHFpa1SeCTS2J5/n8Rc1Mry2Pxs2rfDH7jB41+7fkXs1XXyGofnmvrC+qtXHe Rq1w== X-Gm-Message-State: AOJu0YwDTSVa2ib04XwwZ5aPd5JOqwQkllBqhquoiboAX7eZFIm5yGGw cYGtM3HHTIRLk3bqrpAUNN1tGQ== X-Received: by 2002:a1c:721a:0:b0:405:1baf:cedf with SMTP id n26-20020a1c721a000000b004051bafcedfmr18766386wmc.24.1697026197027; Wed, 11 Oct 2023 05:09:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:56 -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 54/62] pinctrl: rk805: drop the wrapper around pinctrl_gpio_direction_input() Date: Wed, 11 Oct 2023 14:08:22 +0200 Message-Id: <20231011120830.49324-55-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 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:20:50 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779461725870737519 X-GMAIL-MSGID: 1779461725870737519 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-rk805.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/pinctrl/pinctrl-rk805.c b/drivers/pinctrl/pinctrl-rk805.c index 968f066eb9da..56d916f2cee6 100644 --- a/drivers/pinctrl/pinctrl-rk805.c +++ b/drivers/pinctrl/pinctrl-rk805.c @@ -286,12 +286,6 @@ static void rk805_gpio_set(struct gpio_chip *chip, offset, value); } -static int rk805_gpio_direction_input(struct gpio_chip *chip, - unsigned int offset) -{ - return pinctrl_gpio_direction_input(chip, offset); -} - static int rk805_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, int value) { @@ -330,7 +324,7 @@ static const struct gpio_chip rk805_gpio_chip = { .get_direction = rk805_gpio_get_direction, .get = rk805_gpio_get, .set = rk805_gpio_set, - .direction_input = rk805_gpio_direction_input, + .direction_input = pinctrl_gpio_direction_input, .direction_output = rk805_gpio_direction_output, .can_sleep = true, .base = -1,