Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1704782imm; Mon, 3 Sep 2018 07:23:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZNxygr5XuNrP2drWJAAZOkGVqzFLjUlAl7Y6mXpULvDHzF+Yc7OcW9VP0nB61ngxbmHHdI X-Received: by 2002:a62:cc83:: with SMTP id j3-v6mr29732767pfk.255.1535984595027; Mon, 03 Sep 2018 07:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535984595; cv=none; d=google.com; s=arc-20160816; b=VmV6/evSSI79M6JDt8V1MD18XjkiKiRPqTeCcTiiJX+KwEbxft4tz1o9NO8XAkREV9 ZkUXBXmjlcDXqAA/Elao69ioWF7tbbkXuWA6I+39usIxuTubMlFVp9Gg4gPORHQtmT0A sPzVXcwKtd10T6SwXzgUX6w1sXASbLesig3GjlWxy4pDW1cb4nd0NYHSkgO5Adg3KY3A yRgmjJqSftC9hWkTzRrz5YBzZohUD1HuJQmDAeDWZKaj9BB6kLK/1Ych/ooo5exuH6vQ sKlqGBc9341VnvphGFlnSPtrgevzQBOciZvSIh5rdLISLvoOoHzvC1thd9nHvFAWIMFS et5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=puTAeydjxn5dvYiCYLIwqdqVR43ON5sBctrZUAuiI9Y=; b=SWblLDNWOSH+1tpbWMiUmthE3Y8403LS6AJEN3YBEZK3y+qt0p4O5NxNcEweeSaiXw HGMfdGRs0cbDwTJYjdJXhCaNPQfTyfAcPrwyuhO+gjUcF8MpRY5MdIglysTGCkhAowYy 4hR7PU64c8vQFv4ePi1P3utGWq5ynJ3tEXuwo74dkWaGbqONeKPIpCCtNZBU+ItkHZRE kqK3mGwlXS9MM7iWsCb5tm6uOZvHmBJr3y3MRC5O80LjMraVhpiRWuuQdsfp/rVmdjtn DZQoveoF78ggFIxHks7ysG66HXQ6FijQOqeWWh4R0mCzDrBL4xAajIchlTzyf1Hnst5W BfEQ== 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 l9-v6si18245693pfe.11.2018.09.03.07.22.59; Mon, 03 Sep 2018 07:23:14 -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 S1727398AbeICSmL (ORCPT + 99 others); Mon, 3 Sep 2018 14:42:11 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:39715 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbeICSmK (ORCPT ); Mon, 3 Sep 2018 14:42:10 -0400 Received: by mail-ua1-f67.google.com with SMTP id g18-v6so537762uam.6; Mon, 03 Sep 2018 07:21:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=puTAeydjxn5dvYiCYLIwqdqVR43ON5sBctrZUAuiI9Y=; b=UN3JaEKmk5rFHHth+j+KTXv7UcjfT2dVMsfvdmFPRlV5Q8vGdWk3BaWFkBCSGfmz5n fATwj1ygFP6/UHsLKqfesGm/S9bZfbWpxrW7ukicDcX8hpndWi/+t0U1dwKlIMvRN8rm URgpbBwnpE/3J6tjL9Yd1p8/PrFB2CtMmMGitzRrBfPWTGMxUNAPIYTvMbiueYGWBop0 1JwQsyiuVdfF4b3t1dVPQmqmGbU4Qg60cauGES8h0w+mK/sCJpn6UhUiMaqtGNI4ZeOl ULxwdLimrlkiyKYqT2O1geRVla8dhfFw28i5ec4c4cgm31kLYOQodaWyecuKl0hy2+3O nJUg== X-Gm-Message-State: APzg51ApCOrlQbl/f3+ilCgLDVmJwo8QJcQ/BLOz6ING1x6nmyRmo4Mt Vm9marK9KBBRkXn5oS2/1XyASLXt5Gvi+TjnDaQ= X-Received: by 2002:a67:6908:: with SMTP id e8-v6mr8749136vsc.21.1535984505642; Mon, 03 Sep 2018 07:21:45 -0700 (PDT) MIME-Version: 1.0 References: <20180831225616.29221-1-jmkrzyszt@gmail.com> <20180902120144.6855-1-jmkrzyszt@gmail.com> <20180902120144.6855-4-jmkrzyszt@gmail.com> In-Reply-To: <20180902120144.6855-4-jmkrzyszt@gmail.com> From: Geert Uytterhoeven Date: Mon, 3 Sep 2018 16:21:33 +0200 Message-ID: Subject: Re: [PATCH v7 3/4] gpiolib: Pass array info to get/set array functions To: Janusz Krzysztofik Cc: Linus Walleij , Jonathan Corbet , Miguel Ojeda Sandonis , peter.korsgaard@barco.com, Peter Rosin , Ulf Hansson , Andrew Lunn , Florian Fainelli , "David S. Miller" , Dominik Brodowski , Greg KH , Kishon Vijay Abraham I , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald , Jiri Slaby , Willy Tarreau , "open list:DOCUMENTATION" , Linux I2C , Linux MMC List , netdev , linux-iio@vger.kernel.org, driverdevel , "open list:SERIAL DRIVERS" , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , sebastien.bourdelin@savoirfairelinux.com, Lukas Wunner , Rojhalat Ibrahim , Russell King , ext Tony Lindgren , Yegor Yefremov , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 2, 2018 at 2:01 PM Janusz Krzysztofik wrote: > In order to make use of array info obtained from gpiod_get_array() and > speed up processing of arrays matching single GPIO chip layout, that > information must be passed to get/set array functions. Extend the > functions' API with that additional parameter and update all users. > Pass NULL if a user bulids an array itself from single GPIOs. builds 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