Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2156453imm; Thu, 20 Sep 2018 08:35:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYQExE06QahWk3Lcbf6jUmdCrLKVbRv7OgCiiPxYFfxO6lB8gMQbf1r66XwvoExp79+flKR X-Received: by 2002:a63:444d:: with SMTP id t13-v6mr37252674pgk.102.1537457737373; Thu, 20 Sep 2018 08:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537457737; cv=none; d=google.com; s=arc-20160816; b=nLOsYzKF7Z7JW564JHl/L22Yipv4ySPjIfouHmcSrZv/9HmreAu3L6zKevnAIKlGnW 47k/MXU3QZ4mZBZEbrGlf1OgD86tdYIk0XupG9Rsg45Uw1E4jPz5pJsBpL0O52brmUZp 9HWDjVWv4PB45X6NPZHJmanFbZ84TvQoRA5RKz0jBPZ6WD99zoFSDsrrtpaYgoceE2vz jsSArbC1F1Wj/d3ODT+cB7uaqNDLo2y8Uyt3E0kPXeh3lV5fg7pV89j2zo+X5iGCCUb1 fj9BDkGNMQtSYPy9MD+omfsU/CeKstLLHaHU6f7yvvivZorLX6/TECDgnqlY/4ROxQx9 dz8A== 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:dkim-signature; bh=HylYz28m2nx/QMAXHpp6zM2fvp38YUoBEEQ93LCIKXU=; b=iLcZLnxWvRs5BtLRALuU7Dfk2tJ485nEu1ddVyqBe0nPEWbuz8MHrxVZLRjC5CUs6U 8BBoZ/2N2Vc5hZ4f1njXZj/O8Bq2fprT8dxBahSlPdSP8R2juP4SKeSM+MPYGn+2Tejb d6A8zJJXR/GeOWN+mS+KJztk2Xt3nfJW0fc7HpWIP5J7cM1t8BO2XYH7eaYFG6CQuzoK 2c0vK0pRqhcYqCQAp4Z9OFndZjGVkwJT6oXq7eQFC1dKy6c3Bx/nX91jrFzsrLiQnyFb 1fVsy7Qz9YmM9zBTPJLNxNr7wFf2hyOA8G5CSBefGqJhRQ8beG1CaVyylEtDBv7Py+O0 WOew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KHEnsRQP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9-v6si25630939pfe.11.2018.09.20.08.35.21; Thu, 20 Sep 2018 08:35:37 -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; dkim=pass header.i=@linaro.org header.s=google header.b=KHEnsRQP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733194AbeITVRW (ORCPT + 99 others); Thu, 20 Sep 2018 17:17:22 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:40583 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730984AbeITVRW (ORCPT ); Thu, 20 Sep 2018 17:17:22 -0400 Received: by mail-io1-f66.google.com with SMTP id l14-v6so7739332iob.7 for ; Thu, 20 Sep 2018 08:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HylYz28m2nx/QMAXHpp6zM2fvp38YUoBEEQ93LCIKXU=; b=KHEnsRQPbkWURLASSvSW4NbwutDGw0IWdG+t61HDieRpqfaeIcW4Q1cwZHomZhfww+ 5u5SH0i6dOJsPad9C0pkVsFqxJBH8ceYgvjt45Lj3a0WwKd55WY1DoblkQt13TCgUHLo RqVNZSnpxFpJghKHf7M07OecDvVNhSGgslwlg= 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=HylYz28m2nx/QMAXHpp6zM2fvp38YUoBEEQ93LCIKXU=; b=IIK6ImmxkAkV1cHKdk5Olk8yR9/LSIpCZYl7IrRpGvJX0BmQQY67TH5fyVhcuOyxGJ aIyEtBFrkxM0IKg5CtMz2Ggd+qxZvyhZD/UUhPjtKYTQEV5lcPNA2KGsY01EuM0AE3Xw dLovh92vZKpkHqliGxpsT1scSFlOQRshu6+kMHL/01cg7l2KaOyjprkDI0tcqXKaw6GO C8fGKicJPistGKfXq1RWxOwgG2t45r169U20+UdZxzrhMMTHPb0X+ySw0IlKTTFJ4cTA InIhW4JcDLnwmycXl5x+u5ZTv67LcyHIAAiJjXiS1t1AoM0qPuzE0KhdkIuAKto8BtmE C8Hg== X-Gm-Message-State: APzg51A7UJX2efC4/ehJ2j9UO6EJQ61nwHx0JX4i7B+W7nY1FUCnSUds xnKiy46RGbHWOGpCMrko4npbPFlon886whJohdPFBg== X-Received: by 2002:a6b:4006:: with SMTP id k6-v6mr21220438ioa.277.1537457600156; Thu, 20 Sep 2018 08:33:20 -0700 (PDT) MIME-Version: 1.0 References: <20180909225605.16463-3-jmkrzyszt@gmail.com> <20180919221729.21179-1-jmkrzyszt@gmail.com> In-Reply-To: <20180919221729.21179-1-jmkrzyszt@gmail.com> From: Linus Walleij Date: Thu, 20 Sep 2018 08:33:07 -0700 Message-ID: Subject: Re: [PATCH v5] mtd: rawnand: ams-delta: use GPIO lookup table To: Janusz Krzysztofik Cc: =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , ext Tony Lindgren , Aaro Koskinen , Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Mark Vasut , Linux-OMAP , linux-mtd@lists.infradead.org, "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" 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 Wed, Sep 19, 2018 at 3:17 PM Janusz Krzysztofik wrote: > Now as Amstrad Delta board - the only user of this driver - provides > GPIO lookup tables, switch from GPIO numbers to GPIO descriptors and > use the table to locate required GPIO pins. > > Declare static variables for storing GPIO descriptors and replace > gpio_ function calls with their gpiod_ equivalents. > > Pin naming used by the driver should be followed while respective GPIO > lookup table is initialized by a board init code. > > Signed-off-by: Janusz Krzysztofik > Acked-by: Boris Brezillon > Acked-by: Miquel Raynal > --- > Changelog: > v5: > - rebased on nand/next > - resubmitted to linux-mtd as a stand-alone patch Reviewed-by: Linus Walleij Yours, Linus Walleij