Anton Vorontsov ad1e597d41 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 <avorontsov@ru.mvista.com>
Cc: Pierre Ossman <pierre@ossman.eu>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: David Vrabel <david.vrabel@csr.com>
Cc: Ben Dooks <ben@fluff.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-23 07:39:37 -07:00
..
2008-08-01 19:04:26 +02:00
2009-07-31 12:28:46 +02:00
2008-12-16 14:58:17 +01:00
2009-09-23 07:39:32 -07:00
2009-09-23 07:39:32 -07:00
2009-06-30 18:56:00 -07:00
2009-09-12 12:02:26 +01:00
2009-03-24 21:30:03 +01:00
2009-07-03 14:13:28 +08:00
2009-06-21 21:00:59 +02:00
2009-06-13 22:42:59 +02:00
2008-12-31 19:56:05 +01:00
2009-06-13 22:43:00 +02:00
2009-04-08 20:14:54 +02:00
2007-07-26 01:53:31 +02:00