Nicolas Ferre baf6332a23 atmel_lcdfb: fix pixclock divider calculation
Fix divider calculation and allow CLKVAL = 0 (divisor 2)

It was not possible to get the clock value 0 (divisor 2) because
the test "<=0" force the BYPASS bit to be activated instead.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Per Hedblom <per.hedblom@abem.se>
Cc: Roel Kluin <12o3l@tiscali.nl>
Cc: Jan Weber <jw022609@uni-greifswald.de>
Cc: Andrew Victor <linux@maxim.org.za>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-13 08:02:25 -07:00
..
2007-10-18 14:37:17 -07:00
2008-03-10 18:01:20 -07:00
2008-02-03 17:31:49 +02:00
2008-04-28 08:58:38 -07:00
2008-04-28 08:58:18 -07:00
2007-07-31 15:39:39 -07:00
2008-04-28 08:58:38 -07:00
2008-04-28 08:58:35 -07:00
2007-10-18 14:37:17 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-02-03 17:31:49 +02:00
2007-11-29 09:24:52 -08:00
2008-03-19 18:53:37 -07:00
2008-02-06 10:41:15 -08:00
2008-05-08 21:37:30 -07:00
2007-11-14 18:45:42 -08:00
2008-04-28 08:58:35 -07:00
2008-02-06 10:41:15 -08:00
2008-02-06 10:41:16 -08:00
2008-05-08 21:37:30 -07:00
2008-04-28 08:58:41 -07:00
2007-10-16 09:43:20 -07:00
2008-02-06 10:41:17 -08:00
2008-04-28 08:58:38 -07:00
2007-10-16 09:43:14 -07:00
2008-03-04 16:35:13 -08:00
2007-10-16 09:43:22 -07:00
2008-05-08 21:37:30 -07:00
2007-10-16 09:43:18 -07:00
2008-04-28 08:58:38 -07:00