Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp448561ybb; Wed, 25 Mar 2020 03:05:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtWrTUVFqk05aw6iCweg/6DXluKnPiLbjGy71Th6J1Zko7BcGesc5lhoReVHK4cLY30mEjn X-Received: by 2002:aca:52d0:: with SMTP id g199mr1891899oib.59.1585130720680; Wed, 25 Mar 2020 03:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585130720; cv=none; d=google.com; s=arc-20160816; b=L5PGr30pBDH0LNCmRsyEr4+5wFdV1WPUCbdB6JVfyWGqrwR/do5RhO1xeqamhADvl/ l8n3J9TspalM6kH02lknF4TBA9hsM6GhxXV7k3mMXGj83cwRk4UB2K7J1Y7OAJ6UcwJV 7RvJGoGIZjpIym1r5pUC6TBN0CKNXDSB4hVjhi6oPlNnmrEmVKMGSQTApD1isygR4c49 Fccj3r6dZQwtNi8UQslyw3PTVPl5Q2ZaV3BCJ3G+It891dVP0TLTLy6v573L7N8GkmDf siqNupGifnpeQcnNnfiVLVwAEjfoi9JarudVihMvrIMV+WuPfMFs2iNKN8+9RgvE0TIE ocpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=U6e0MgqEHCwJJGq81+Ba1tf6n9Civ9dYyM0W/Lm8Z4o=; b=rAqSGySQKoe1iYf5ETCs1FY97rWBy4r+GRIvzSJczCV+r94nfCRZs5aK+jfr1Z1jKJ XdV/S7jX9bKMhFAjMYygosBXik4/uIAKCVDpzI6zwhodyarlDh2g9EZysoZMGjVPtZDC 6Xf27pYhDcXNP3MXGySBPko1D7t/4HeF/P0WYm/frTxE48xhqea4riGJzIoCJoI+RP6S /jxunOQ1dgoDOBhbVJ1z0Cghnc11BUaNnT/uKkdU01EnkkUorn93x6qS4I/8xVrkJA64 xPyAuBAhH0iU3mB4dC1blAablqu9yUyIjVqmcutLUq/OgWEth8nZt3J6zU9mM/Sd/7Ui ZsRA== 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 s84si9794898oib.83.2020.03.25.03.05.06; Wed, 25 Mar 2020 03:05: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 S1727581AbgCYKEr (ORCPT + 99 others); Wed, 25 Mar 2020 06:04:47 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:59654 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727319AbgCYKEp (ORCPT ); Wed, 25 Mar 2020 06:04:45 -0400 Received: from ramsan ([84.195.182.253]) by xavier.telenet-ops.be with bizsmtp id Ja4k220025USYZQ01a4kxS; 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-00033t-12; 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-0003ed-01; 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 0/2] gpiolib: gpio_set_config() cleanups Date: Wed, 25 Mar 2020 11:04:37 +0100 Message-Id: <20200325100439.14000-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, Bartosz, This patch sets reworks the parameters for gpio_set_config() and gpio_set_bias(), which simplifies callers, and slightly reduces the number of lines of code. Thanks for your comments! Geert Uytterhoeven (2): gpiolib: Pass gpio_desc to gpio_set_config() gpiolib: Remove unused gpio_chip parameter from gpio_set_bias() drivers/gpio/gpiolib.c | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) -- 2.17.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds