Vinit Shenoy eb798c641a spi/pl022: Fix range checking for bits per word
pl022 ssp controller supports word lengths from 4 to 16 (or 32) bits.
Currently implemented checks were incorrect. It has following check

if (pl022->vendor->max_bpw >= 32)

which must be checking for <=.

Also error print message is incorrect, that prints "range is from 1 to
16".

Fix both these issues.

Signed-off-by: Vinit Shenoy <vinit.shenoy@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2012-04-17 17:54:05 -06:00
..
2012-03-27 16:03:32 -07:00
2011-11-09 23:02:12 +08:00
2011-10-24 14:14:40 +02:00
2011-06-06 01:16:30 -06:00
2011-09-21 09:41:48 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2012-03-07 19:18:49 -07:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2012-03-15 03:32:17 -06:00
2011-06-06 01:16:30 -06:00