]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30c81fb2fb38b25acab76da344b947a6f46d9f09
tree2ab184760bc67873c8603b181e2eb078b6db2c35
parent4c657b86d2d62f10e0f8d138c57b58b7b39425cd
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