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: NStefan Wahren <stefan.wahren@i2se.com> Acked-by: NNoralf Trønnes <noralf@tronnes.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录