Skip to content
Snippets Groups Projects
Commit 8dea61da authored by Mario Six's avatar Mario Six Committed by Jagan Teki
Browse files

spi: mpc8xxx: Make code more readable


Introduce the to_prescale_mod and set_char_len inline functions to make
the code more readable.

Note that the added "if (bitlen > 16)" check does not change the
semantics of the current code, and hence only preserves the current
error (this will be fixed in a later patch in the series).

Signed-off-by: Mario Six's avatarMario Six <mario.six@gdsys.cc>
Acked-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent 65f88e04
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment