]> git.baikalelectronics.ru Git - kernel.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)
commitd576ab0ebdfc503c5d41cbc249810098d02bada0
treef88a09c9b70ce781357df071b6011a95bd557609
parent400710b77af3accf4be489bbabaac51a12099bd2
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