staging: fbtft: fix 9-bit SPI support detection
authorStefan Wahren <stefan.wahren@i2se.com>
Tue, 25 Aug 2015 21:04:11 +0000 (21:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:33:58 +0000 (09:33 -0700)
commitcabb5b2a2866829177df2f1cee70f0dd42ee6ae0
tree2ab184760bc67873c8603b181e2eb078b6db2c35
parentd98229f0299d5d5a741873c5900159844b2b2de5
staging: fbtft: fix 9-bit SPI support detection

Since the result of the setup function isn't adequate to check
9-bit SPI support, we better check bits_per_word_mask. Btw this
change avoids a NULL pointer dereference with master drivers
without a separate setup function.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c
drivers/staging/fbtft/flexfb.c