From mboxrd@z Thu Jan 1 00:00:00 1970 From: olof@lixom.net (Olof Johansson) Date: Tue, 3 Oct 2017 18:13:11 -0700 Subject: [PATCH] mtd: nand: gpio: Convert to use GPIO descriptors In-Reply-To: <20170924173912.9199-1-linus.walleij@linaro.org> References: <20170924173912.9199-1-linus.walleij@linaro.org> Message-ID: <20171004011311.rn3plqb4es5hcupa@localhost> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sun, Sep 24, 2017 at 07:39:12PM +0200, Linus Walleij wrote: > There is exactly one board in the kernel that defines platform data > for the GPIO NAND driver. > > Use the feature to provide a lookup table for the GPIOs in the board > file so we can convert the driver as a whole to just use GPIO > descriptors. > > After this we can cut the use of and use the GPIO > descriptor management from alone to grab and use > the GPIOs used in the driver. > > I also created a local struct device *dev in the probe() function > because I was getting annoyed with all the &pdev->dev dereferencing. > > Cc: arm at kernel.org > Cc: Mike Rapoport > Cc: Frans Klaver > Cc: Gerhard Sittig > Cc: Jamie Iles > Signed-off-by: Linus Walleij > --- > ARM SoC folks: Please ACK this so it can be merged through the MTD > subsystem. Acked-by: Olof Johansson -Olof