From patchwork Wed Mar 25 10:03:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 214137 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10CB8C54FD9 for ; Wed, 25 Mar 2020 10:04:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD436207FF for ; Wed, 25 Mar 2020 10:04:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727494AbgCYKEE (ORCPT ); Wed, 25 Mar 2020 06:04:04 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:45050 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727473AbgCYKED (ORCPT ); Wed, 25 Mar 2020 06:04:03 -0400 Received: from ramsan ([84.195.182.253]) by andre.telenet-ops.be with bizsmtp id Ja3y2200o5USYZQ01a3yHU; Wed, 25 Mar 2020 11:04:01 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1jH2tC-00033V-Qi; Wed, 25 Mar 2020 11:03:58 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1jH2tC-0003Zo-O8; Wed, 25 Mar 2020 11:03:58 +0100 From: Geert Uytterhoeven To: Rob Herring , Greg Kroah-Hartman Cc: Ulrich Hecht , Chris Brandt , Yoshinori Sato , Rich Felker , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, Geert Uytterhoeven Subject: [PATCH 0/2] gpiolib: gpio_set_config() cleanups Date: Wed, 25 Mar 2020 11:03:55 +0100 Message-Id: <20200325100357.13705-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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(-)