1
linux/arch/arm/mach-ep93xx
Julia Lawall af1057abd7 ARM: 5635/1: Use DIV_ROUND_CLOSEST
The kernel.h macro DIV_ROUND_CLOSEST performs the computation
(x + d/2)/d but is perhaps more readable.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@haskernel@
@@

@depends on haskernel@
expression x,__divisor;
@@

- (((x) + ((__divisor) / 2)) / (__divisor))
+ DIV_ROUND_CLOSEST(x,__divisor)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-08-03 12:35:43 +01:00
..
include/mach ARM: 5628/1: ep93xx: Introduce Pulse Width Modulator (PWM) driver 2009-07-30 17:45:43 +01:00
adssphere.c [ARM] 5592/1: ep93xx: cleanup platform header includes 2009-07-09 16:13:44 +01:00
clock.c ARM: 5628/1: ep93xx: Introduce Pulse Width Modulator (PWM) driver 2009-07-30 17:45:43 +01:00
core.c ARM: 5635/1: Use DIV_ROUND_CLOSEST 2009-08-03 12:35:43 +01:00
dma-m2p.c [ARM] 5414/2: ep93xx m2p dma core 2009-03-03 12:20:11 +00:00
edb93xx.c [ARM] 5592/1: ep93xx: cleanup platform header includes 2009-07-09 16:13:44 +01:00
gesbc9312.c [ARM] 5592/1: ep93xx: cleanup platform header includes 2009-07-09 16:13:44 +01:00
gpio.c [ARM] 5605/1: Fix ep93xx gpio.c headers 2009-07-17 13:35:58 +01:00
Kconfig [ARM] 5523/1: ep93xx phys offset selection 2009-05-24 19:21:32 +01:00
Makefile [ARM] 5504/1: ep93xx: Merge all edb93xx platforms 2009-05-15 20:42:57 +01:00
Makefile.boot [ARM] 5523/1: ep93xx phys offset selection 2009-05-24 19:21:32 +01:00
micro9.c [ARM] 5592/1: ep93xx: cleanup platform header includes 2009-07-09 16:13:44 +01:00
ts72xx.c [ARM] 5592/1: ep93xx: cleanup platform header includes 2009-07-09 16:13:44 +01:00