mtd: spi-nor: add a helper to find the spi_device_id
authorHuang Shijie <b32955@freescale.com>
Mon, 24 Feb 2014 10:37:40 +0000 (18:37 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 14 Apr 2014 18:22:58 +0000 (11:22 -0700)
commit0d8c11c01274bde227d368daa8954911dd324a9f
tree74a5cea5d6cbe628aba708aa2117d344ca6475c1
parent03e296f613affcc2671c1e86d8c25ecad867204e
mtd: spi-nor: add a helper to find the spi_device_id

Add the spi_nor_match_id() to find the proper spi_device_id with the
NOR flash's name in the spi_nor_ids table.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h