]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: Get rid of busw parameter
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 24 May 2016 18:17:48 +0000 (20:17 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 8 Mar 2017 22:21:16 +0000 (23:21 +0100)
commit29a198a1592d83f2bc1be3b2631b3bcf3d5b380f
treef88a09c9b70ce781357df071b6011a95bd557609
parent7f501f0a72036dc29ad9a53811474c393634b401
mtd: nand: Get rid of busw parameter

Auto-detection functions are passed a busw parameter to retrieve the actual
NAND bus width and eventually set the correct value in chip->options.
Rework the nand_get_flash_type() function to get rid of this extra
parameter and let detection code directly set the NAND_BUSWIDTH_16 flag in
chip->options if needed.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
drivers/mtd/nand/nand_base.c