]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef442d11b02f4b6c6d7e367f0853317d140227b1
tree74a5cea5d6cbe628aba708aa2117d344ca6475c1
parent951f454b1fe7e2847155c243bcfedc8ff6d60420
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