linux/drivers/net/wan
Julia Lawall bb55b327cb drivers/net/wan: Use DIV_ROUND_UP
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.

An extract of 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 n,d;
@@

(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)

@depends on haskernel@
expression n,d;
@@

- DIV_ROUND_UP((n),d)
+ DIV_ROUND_UP(n,d)

@depends on haskernel@
expression n,d;
@@

- DIV_ROUND_UP(n,(d))
+ DIV_ROUND_UP(n,d)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-09-22 19:23:48 -07:00
..
lmc WAN: Use u32 type instead of u_int32_t in LMC driver. 2008-07-23 23:05:56 +02:00
.gitignore
c101.c WAN: convert drivers to use built-in netdev_stats 2008-07-04 08:47:41 -04:00
cosa.c Merge branch 'for-jeff' of git://git.kernel.org/pub/scm/linux/kernel/git/chris/linux-2.6 into tmp 2008-08-07 04:05:46 -04:00
cosa.h
cycx_drv.c Spelling fixes: lenght->length 2008-02-03 15:42:53 +02:00
cycx_main.c
cycx_x25.c cycx: annotations and fixes (.24 fodder?) 2007-12-22 22:53:06 -05:00
dlci.c [NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS. 2008-03-26 04:39:53 +09:00
dscc4.c WAN: Remove unneeded "#include <net/syncppp.h>" 2008-07-23 23:00:37 +02:00
farsync.c WAN: farsync driver no longer uses syncppp.c directly 2008-07-23 23:00:38 +02:00
farsync.h WAN: farsync driver no longer uses syncppp.c directly 2008-07-23 23:00:38 +02:00
hd6457x.c WAN: convert drivers to use built-in netdev_stats 2008-07-04 08:47:41 -04:00
hd64570.h
hd64572.h
hdlc.c WAN: cosmetic changes to generic HDLC 2008-07-23 23:00:25 +02:00
hdlc_cisco.c WAN: cosmetic changes to generic HDLC 2008-07-23 23:00:25 +02:00
hdlc_fr.c WAN: cosmetic changes to generic HDLC 2008-07-23 23:00:25 +02:00
hdlc_ppp.c WAN: cosmetic changes to generic HDLC 2008-07-23 23:00:25 +02:00
hdlc_raw.c WAN: cosmetic changes to generic HDLC 2008-07-23 23:00:25 +02:00
hdlc_raw_eth.c WAN: cosmetic changes to generic HDLC 2008-07-23 23:00:25 +02:00
hdlc_x25.c WAN: cosmetic changes to generic HDLC 2008-07-23 23:00:25 +02:00
hostess_sv11.c WAN: Convert Zilog-based drivers to generic HDLC 2008-07-23 23:05:55 +02:00
Kconfig Merge branch 'for-jeff' of git://git.kernel.org/pub/scm/linux/kernel/git/chris/linux-2.6 into tmp 2008-08-07 04:05:46 -04:00
lapbether.c lapbeth: Release ->ethdev when unregistering device. 2008-05-03 21:10:58 -07:00
Makefile WAN: Port LMC driver to generic HDLC 2008-07-23 23:05:56 +02:00
n2.c
pc300-falc-lh.h
pc300.h WAN: Convert PC300 driver to use normal u8/u16/u32 types 2008-07-23 23:00:38 +02:00
pc300_drv.c WAN: Convert PC300 driver to use normal u8/u16/u32 types 2008-07-23 23:00:38 +02:00
pc300_tty.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2008-07-20 17:43:29 -07:00
pc300too.c
pci200syn.c
sbni.c drivers/net/wan: Use DIV_ROUND_UP 2008-09-22 19:23:48 -07:00
sbni.h sbni endian fixes 2008-01-18 14:44:33 -05:00
sdla.c [netdrvr] irq handler minor cleanups in several drivers 2008-01-28 15:03:40 -08:00
sealevel.c WAN: Convert Zilog-based drivers to generic HDLC 2008-07-23 23:05:55 +02:00
syncppp.c Remove bogus variables from syncppp.[ch] 2008-07-23 23:00:31 +02:00
wanxl.c WAN: convert drivers to use built-in netdev_stats 2008-07-04 08:47:41 -04:00
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S
x25_asy.c tty: Ldisc revamp 2008-07-20 17:12:34 -07:00
x25_asy.h
z85230.c WAN: Convert Zilog-based drivers to generic HDLC 2008-07-23 23:05:55 +02:00
z85230.h WAN: Convert Zilog-based drivers to generic HDLC 2008-07-23 23:05:55 +02:00