diff options
| author | Anton Vorontsov <[email protected]> | 2009-09-22 16:45:16 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-09-23 07:39:37 -0700 |
| commit | ad1e597d4199ffcdee04b9fb402e45c5be6a5052 (patch) | |
| tree | 55792614ebf09ff2d293a1f190979eede5066f8c /scripts | |
| parent | 8226a219254bbcd20492df185f191a11a7a81dcd (diff) | |
sdhci-of: cleanup eSDHC's set_clock() a little bit
- Get rid of incomprehensible "if { for { if } }" construction for the
exponential divisor calculation. The first if statement isn't correct
at all, since it should check for "host->max_clk / pre_div / 16 >
clock". The error doesn't cause any bugs because the check in the for
loop does the right thing, and so the outer check becomes useless;
- For the linear divisor do the same: a single while statement is more
readable than for + if construction;
- Add dev_dbg() that prints desired and actual clock frequency.
Signed-off-by: Anton Vorontsov <[email protected]>
Cc: Pierre Ossman <[email protected]>
Cc: Kumar Gala <[email protected]>
Cc: David Vrabel <[email protected]>
Cc: Ben Dooks <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions