commands: spi: fix chip select validation
The chip selects are numbered 0..(max chip selects - 1). Chip select
with number <max chip selects> is invalid. Fix the check for that. Using
the out of bound chip select may hang your board.

Signed-off-by: Stefan Lengfeld <s.lengfeld@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e6876cd commit 7649dc9ec971d0988c9bf1e9d9c004fa284d81b5
@Stefan Lengfeld Stefan Lengfeld authored on 7 Nov 2016
Sascha Hauer committed on 8 Nov 2016
Showing 1 changed file
View
commands/spi.c