From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVC9F-0000Yg-GJ for linux-mtd@lists.infradead.org; Fri, 07 Dec 2018 09:10:15 +0000 From: Boris Brezillon To: Boris Brezillon , Tudor Ambarus , Marek Vasut Cc: Brian Norris , David Woodhouse , linux-mtd@lists.infradead.org, Richard Weinberger Subject: Re: [v3,3/5] mtd: spi-nor: Stop passing flash_info around Date: Fri, 7 Dec 2018 10:10:08 +0100 Message-Id: <20181207091008.16675-1-boris.brezillon@bootlin.com> In-Reply-To: <20181206104120.6280-4-boris.brezillon@bootlin.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2018-12-06 at 10:41:18 UTC, Boris Brezillon wrote: > Some functions called from spi_nor_scan() need a flash_info object. > Let's assign nor->info early on to avoid passing info as an extra > argument to each of these sub-functions. > > We also stop passing a flash_info object to set_4byte() and use > nor->info directly. > > Signed-off-by: Boris Brezillon > Reviewed-by: Tudor Ambarus Applied to http://git.infradead.org/linux-mtd.git spi-nor/next. Boris