mtd: spi-nor: eliminate duplicate spi_nor_wait_till_{, fsr}_ready() code
authorBrian Norris <computersforpeace@gmail.com>
Wed, 10 Sep 2014 07:26:16 +0000 (00:26 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 5 Nov 2014 10:01:32 +0000 (02:01 -0800)
commit51983b7dcf3a50f4fdf6353235cd520e6c946e5a
treef7fc5ac39a0468a40c0a4c24607702b7cb55311b
parente76064464e814bdfe12d0f73d859488e28578946
mtd: spi-nor: eliminate duplicate spi_nor_wait_till_{, fsr}_ready() code

These functions were near-carbon-copies due to a small per-flash quirk.
Let's add a new spi_nor::flags bitfield to support these types of
quirks.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Cc: Graham Moore <grmoore@altera.com>
Cc: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/spi-nor.c