commit | 8dea61da199540abc56e397f811f72debdd53d1c | [log] [tgz] |
---|---|---|
author | Mario Six <mario.six@gdsys.cc> | Mon Apr 29 01:58:47 2019 +0530 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Mon Jun 10 17:59:48 2019 +0530 |
tree | 8c780b506457555b353aa1ab6e54734ab2be9444 | |
parent | 65f88e0408e8ddba827fb9ace1596591365f0b79 [diff] |
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 <mario.six@gdsys.cc> Acked-by: Jagan Teki <jagan@amarulasolutions.com>