Files
linux-apfs/drivers/spi
Ben Dooks b897878454 spi_s3c24xx: fix clock rate calculation
Currently the clock rate calculation may round as pleased, which means
that it is possible that we will round down and end up with a faster clock
rate than intended.

Change the calculation to use DIV_ROUND_UP() to ensure that we end up with
a clock rate either the same as or lower than the user requested one.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-08-18 16:31:13 -07:00
..
2009-06-19 16:46:05 -07:00
2009-06-19 16:46:05 -07:00
2009-07-29 19:10:35 -07:00
2009-06-30 18:56:00 -07:00
2009-06-18 13:03:42 -07:00
2009-06-19 16:46:05 -07:00
2009-06-18 13:03:42 -07:00
2009-06-30 18:56:00 -07:00