mtd: spi-nor: add id/id_len for flash_info{}
authorHuang Shijie <shijie.huang@intel.com>
Thu, 6 Nov 2014 06:34:01 +0000 (07:34 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 1 Dec 2014 08:05:00 +0000 (00:05 -0800)
commit09ffafb6977dc930770af2910edc3b469651131d
treec419899670af78a805d9cc3f4bbe6fa3333c0e27
parentc30e1f790b0e48669cdc09d469a3f31369790d3b
mtd: spi-nor: add id/id_len for flash_info{}

This patch adds the id/id_len fields for flash_info{}, and rewrite the
INFO to fill them. And at last, we read out 6 bytes in the spi_nor_read_id(),
and we use these new fields to parse out the correct flash_info.

Signed-off-by: Huang Shijie <shijie.huang@intel.com>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/spi-nor.c