kernel-fxtec-pro1x/drivers/atm
Julia Lawall 8b97c7c283 drivers/atm: 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@
@@

#include <linux/kernel.h>

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

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

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-08-02 12:54:22 -07:00
..
.gitignore
adummy.c
ambassador.c
ambassador.h
atmtcp.c
eni.c drivers/atm: Use DIV_ROUND_UP 2008-09-22 19:22:58 -07:00
eni.h
firestream.c atm: Add missing parentheses 2009-02-18 19:35:17 -08:00
firestream.h
fore200e.c fore200: fix oops on failed firmware load 2009-02-10 17:19:19 -08:00
fore200e.h
he.c dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
he.h
horizon.c drivers/atm: Use DIV_ROUND_CLOSEST 2009-08-02 12:54:22 -07:00
horizon.h
idt77105.c
idt77105.h
idt77252.c
idt77252.h
idt77252_tables.h
iphase.c atm: fix non-const printk argument 2009-03-21 19:06:51 -07:00
iphase.h
Kconfig atm: Driver for Solos PCI ADSL2+ card. 2008-12-26 01:26:11 -08:00
lanai.c dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
Makefile atm: Driver for Solos PCI ADSL2+ card. 2008-12-26 01:26:11 -08:00
midway.h
nicstar.c
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c solos: Add initial list of parameters 2009-01-27 16:52:07 +11:00
solos-pci.c drivers/atm: Correct redundant test 2009-07-27 11:38:52 -07:00
suni.c
suni.h
tonga.h
uPD98401.h
uPD98402.c
uPD98402.h
zatm.c drivers/atm: Use DIV_ROUND_UP 2008-09-22 19:22:58 -07:00
zatm.h
zeprom.h