summaryrefslogtreecommitdiffstats
path: root/linux_spi.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-04-01 00:45:32 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-04-01 00:45:32 +0000
commitda5b17c0a2c648c60272f92c9ecbcd10f4af8348 (patch)
tree242daf2a20a91eb22e1cd776d6b335ced4149bcc /linux_spi.c
parentbf88be92911a07d14a4c0bb62a017cad0584d62d (diff)
downloadast2050-flashrom-da5b17c0a2c648c60272f92c9ecbcd10f4af8348.zip
ast2050-flashrom-da5b17c0a2c648c60272f92c9ecbcd10f4af8348.tar.gz
serial.c: round baudrates to valid ones
MSDN says: "The baud rate at which the communications device operates. This member can be an actual baud rate value, or one of the following indexes." But it is not specified what happens for different values, so we round down to valid ones (or to the minimum of 9600) by reusing the existing struct baudentry sp_baudtable[] and the new function round_baud(). Do similarly on non-Windows where arbitrary values are not allowed anyway. Corresponding to flashrom svn r1660. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'linux_spi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud