Skip to content
Commit cd9b6fdf authored by Oskar Schirmer's avatar Oskar Schirmer Committed by Dmitry Torokhov
Browse files

Input: ad7877 - fix spi word size to 16 bit



With no word size given in the users platform data, a generic spi host
controller driver will assume a default word size of eight bit. This
causes transmission to be performed bytewise, which will fail on little
endian machines for sure. Failure on big endian depends on usage
of slave select to mark word boundaries.

Anyway, ad7877 is specified to work with 16 bit per word, so
unconditionally set the word size accordingly. Flag an error where 16
bit per word is not available.

Signed-off-by: default avatarOskar Schirmer <os@emlix.com>
Signed-off-by: default avatarDaniel Glöckner <dg@emlix.com>
Signed-off-by: default avatarOliver Schneidewind <osw@emlix.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 0b75f775
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment