Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109916rdg; Tue, 17 Oct 2023 05:09:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4yup0uDIiNSHZE6BBFH9FABke6SIDmn9HnkjZrVw8zjG9R7z015YeTHd21SlN9WRXIzaF X-Received: by 2002:a9d:67d4:0:b0:6b9:50a8:1e76 with SMTP id c20-20020a9d67d4000000b006b950a81e76mr2162508otn.17.1697544566298; 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=NqsQyY+ueP/8ampIl80U/0Pb9wKD1e7+5KcYwce4vgQxx8givaT1kAGAoxYEogR+9h ig+oixTYNOusxUsD0h6kGn8Pgsb/m6yccQpZ1cBmLPy0DQztNBJqfRN2jZ0rFrVf3/5t DRivHOmi+ZBei87n8EZORtuGJ9ZvbPZdx423hHrBzjrJ0nJUa82Al62XTxEm5A3pCLyP AL6iY9/rWAb4rGaZ04J9hpnLR7e1r9UpepbRA4nAVxA5AupOsv++QHHGr4EH58V/95U5 jo1QNd9uZX4XY+g2reUE2rq8NlNGJkLL2kejVHWr4F/qFmUyprEweE6IKbrAiMHAeLMS 2aYQ== 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=JcmDIZB/5LxmS3nqoLgh5CH080PWmRuWp/zcHiHciBVXc+pKjCfb9lolitE7h6RFDs p3N9n8K3/HuCEETjpjhvQ+yVICJh2pOETtOuSVMe3ySFWVFGRv2/CIduDC+cOfSdWWH9 QcQvp1PD99XZzQV2fDC6qquwNJcwS3ePVfrtFKFysxyXBboNXDLxdnllEYJGt4siCv2R xN2aiH1ePB64cappGjDVZyJJgsHAxk1I5xmFVkzkGHgRfERAF1RT3g893D82rmne8ls1 EzqqSG02QXAMLXjP5KXL6dPbgGMtxZK7k79lT837M983wcoXGdjdcqjc6Uwr0e7Ikz7U PuIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Iq1DEkCJ; 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 f17-20020aa79d91000000b0068a590d803csi338348pfq.361.2023.10.17.05.09.25 (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=Iq1DEkCJ; 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 9B1A9803DBA6; Tue, 17 Oct 2023 05:09:23 -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 S235111AbjJQMJL (ORCPT + 99 others); Tue, 17 Oct 2023 08:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234996AbjJQMHu (ORCPT ); Tue, 17 Oct 2023 08:07:50 -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 5794426A8 for ; Tue, 17 Oct 2023 05:05:47 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-407c3adef8eso4129595e9.2 for ; Tue, 17 Oct 2023 05:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544345; x=1698149145; 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=Iq1DEkCJyf74Eh8GJ/Efr891aLtBnfMpBjFVOBThjueAGkIcYWTn84YwEg1jIkjkzj /1yLkN/BT5jJOkAQkOrxX7pX27R2YawzkBnpj0jhWgOfpaU5k3GXyPh/XgsE6upNz5bW /sSV/zYp1O7jO5+QES3HjYe5VSfUeHASkiMdsBEZ+BJMQOV1PCbsVKZwtS32sG93Cm9X YWDXIncFJ7iA6sjNDNa/UcuTT/QG4BRCXL6577wK4BMPaHnTW9VRCLCdiQiZ2etB+kCK 4ASmM0H7LYfSsmWnK6mDNs1boApbmLd7IKo7Zy0wIKN+PWpbM+zQXTbSl2zf0oZd+uT+ gCCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544345; x=1698149145; 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=CbUQ9ieDTl1GY4LxwuBF7R7Pat2Y4f4xLb6CPZAwkmZBTMGTWKKxC9/E+q111Q30NE osinCFEizL//jjEVKUYwwp8uqxz84d8C/V8VwJTZVfMx2dX0tanq1uOj425RhSpFT0YY xz0nb//mziqKsjkyBA9SpC3IF0JmX16hxuKb5PfanqLGVHz27G46fVSO53SUk4bLrEsW FliQ+/GVvxLhqzfldRAGBcTSiIB4VQrfkmD9lidi7DIZLYnXNkEj18UdVkP6zSrFk0Un fLuIKrw2gqLTw1IjJLmGeaeo4A3IEA7I+8xhZ+7flKCdZTQfmKnmW0BSJpLVH6Fyht7K jMsg== X-Gm-Message-State: AOJu0Yy3VJbvutuZsvlkP/tXn8UimQm8n+CMFK/LZGaE9/O3a5NMogSt p5tS1z4puCJ87WoZKUhxNxkglw== X-Received: by 2002:a05:600c:1392:b0:405:3955:5872 with SMTP id u18-20020a05600c139200b0040539555872mr1630146wmf.18.1697544345467; Tue, 17 Oct 2023 05:05:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:45 -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 59/73] pinctrl: cy8c95x0: drop the wrapper around pinctrl_gpio_direction_input() Date: Tue, 17 Oct 2023 14:04:17 +0200 Message-Id: <20231017120431.68847-60-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:23 -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-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