spi: mxs: Introduce spi_cs_is_valid()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 23 Apr 2012 08:30:49 +0000 (08:30 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:35 +0000 (08:31 +0200)
commit79cb14ab39f970b85204ab1b2f796b02bb65335d
tree2ebead4ef380ede72e6f8dedff5ddefdee3acd40
parent6ecaee8201ddf7dd574e9331ad4249ec867253b5
spi: mxs: Introduce spi_cs_is_valid()

Introduce spi_cs_is_valid() for validating spi bus and chip select numbers.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
drivers/spi/mxs_spi.c