Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp449424ybb; Wed, 25 Mar 2020 03:06:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu4Hrz3irlLwmHLwfbfPBqoS1To2456s8gNbVZy7vg09/qa3iqCP7Zjdt7GiOxH6vIPttNK X-Received: by 2002:a9d:404b:: with SMTP id o11mr1912208oti.120.1585130780193; Wed, 25 Mar 2020 03:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585130780; cv=none; d=google.com; s=arc-20160816; b=hlSArhPg1LQrQL1cpQ+J+YQyc43p1QTghCAg+Alwan3HAdov2Y442IALs+hkZGXIVF dRfOpqAIg3gf/HPzPT15ctlwXuswjueaBO9SSMvc7m8f2H3MB8Lgx7Y12vUfl0Nae8Rb yFyPLTzbeGKnFFmjFjAquU6b7kN/a8rI7RxTpzTxZZSMDsnRQNhz4Dkq+ur8T8ivat4y mQccJ8YP3YcLUDp+Jp0u9jk6CV3ylhyNvm4npQM0K1YKWsoPMb79TOhv2oggpg9GmEmQ MwqkHppz4pIIpDZKpdtNJciDftmMrqJ7485Gw+iMt3mRYc7vOPo7h1eIJZj9Suxbiqgi V6oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=beQ5oCHBEGL4JVxArsS1+8qZH7P+xsfamfd6aVRLw5Q=; b=EX7nWTe7KAZxVmM3alg+xFwsSkd3D3yIL5bhBKIx2DplMlJJQRQD2Ql/HUEb4WX5+H aH1jE5i+VWpiQc7e3/Cyei7kBE+LgODTTYFPeJWIbczfMGope2XTprBvz7X/DaarloQK 3Q7lSLTIprXtkSNXYRv0aDj81eBldJsfIFpHJRbva50kClSzK2fyW/WOkqnth9tO9n7a PjyoTqpKvVGYKuNvbF/9Vw/X0vS/p07lYZC+68tydV3smfJt8DHkb8orxSqDJLiDC1dg /rBws/zx9p2+X0H563nej6WcNz84vv8ecvUctU+Iqc6LWLkXpsx0pQfVy1CGh4VVMNDZ Agkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si10715637otj.170.2020.03.25.03.06.08; Wed, 25 Mar 2020 03:06:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727521AbgCYKEq (ORCPT + 99 others); Wed, 25 Mar 2020 06:04:46 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:59658 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727046AbgCYKEp (ORCPT ); Wed, 25 Mar 2020 06:04:45 -0400 Received: from ramsan ([84.195.182.253]) by xavier.telenet-ops.be with bizsmtp id Ja4k220035USYZQ01a4kxT; Wed, 25 Mar 2020 11:04:44 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1jH2tw-00033y-2V; Wed, 25 Mar 2020 11:04:44 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1jH2tw-0003ei-1c; Wed, 25 Mar 2020 11:04:44 +0100 From: Geert Uytterhoeven To: Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/2] gpiolib: Remove unused gpio_chip parameter from gpio_set_bias() Date: Wed, 25 Mar 2020 11:04:39 +0100 Message-Id: <20200325100439.14000-3-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200325100439.14000-1-geert+renesas@glider.be> References: <20200325100439.14000-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gpio_set_bias() no longer uses the passed gpio_chip pointer parameter. Remove it. Signed-off-by: Geert Uytterhoeven --- drivers/gpio/gpiolib.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 8eeb29de12cb5811..7e3c19bd21cdf327 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -3264,7 +3264,7 @@ static int gpio_set_config(struct gpio_desc *desc, enum pin_config_param mode) return gpio_do_set_config(chip, gpio_chip_hwgpio(desc), config); } -static int gpio_set_bias(struct gpio_chip *chip, struct gpio_desc *desc) +static int gpio_set_bias(struct gpio_desc *desc) { int bias = 0; int ret = 0; @@ -3330,7 +3330,7 @@ int gpiod_direction_input(struct gpio_desc *desc) } if (ret == 0) { clear_bit(FLAG_IS_OUT, &desc->flags); - ret = gpio_set_bias(chip, desc); + ret = gpio_set_bias(desc); } trace_gpio_direction(desc_to_gpio(desc), 1, ret); @@ -3414,7 +3414,6 @@ EXPORT_SYMBOL_GPL(gpiod_direction_output_raw); */ int gpiod_direction_output(struct gpio_desc *desc, int value) { - struct gpio_chip *gc; int ret; VALIDATE_DESC(desc); @@ -3432,7 +3431,6 @@ int gpiod_direction_output(struct gpio_desc *desc, int value) return -EIO; } - gc = desc->gdev->chip; if (test_bit(FLAG_OPEN_DRAIN, &desc->flags)) { /* First see if we can enable open drain in hardware */ ret = gpio_set_config(desc, PIN_CONFIG_DRIVE_OPEN_DRAIN); @@ -3458,7 +3456,7 @@ int gpiod_direction_output(struct gpio_desc *desc, int value) } set_output_value: - ret = gpio_set_bias(gc, desc); + ret = gpio_set_bias(desc); if (ret) return ret; return gpiod_direction_output_raw_commit(desc, value); -- 2.17.1