linux/drivers/misc
Julia Lawall cbf330b94e drivers/misc: 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>
Cc: Jack Steiner <steiner@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-16 11:21:30 -07:00
..
hdpuftrs hdpu_cpustate: BKL pushdown 2008-06-20 14:05:57 -06:00
ibmasm drivers/misc: replace remaining __FUNCTION__ occurrences 2008-04-29 08:06:03 -07:00
sgi-gru drivers/misc: Use DIV_ROUND_UP 2008-10-16 11:21:30 -07:00
sgi-xp sgi-xp: setup the notify GRU message queue 2008-07-30 09:41:50 -07:00
acer-wmi.c Merge branch 'wmi-fix' into release-2.6.27 2008-09-04 14:41:02 +02:00
asus-laptop.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2008-02-07 09:45:58 -08:00
atmel_pwm.c atmel_pwm: set up only one PWM clock when allocating a clock 2008-07-24 10:47:25 -07:00
atmel_tclib.c atmel_tc library 2008-03-04 13:41:23 +01:00
atmel-ssc.c drivers/misc/atmel-ssc.c: Removed duplicated include 2008-07-24 14:06:51 +02:00
compal-laptop.c compal-laptop: remove unnecessary lcd_level attribute 2008-07-16 23:27:01 +02:00
eeepc-laptop.c eeepc-laptop: Fix hwmon interface 2008-10-09 15:33:57 +02:00
eeprom_93cx6.c removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
enclosure.c [SCSI] ses: fix up functionality after class_device->device conversion 2008-04-22 15:16:29 -05:00
fujitsu-laptop.c fujitsu-laptop: fix regression for P8010 in 2.6.27-rc 2008-09-04 14:31:08 +02:00
hp-wmi.c hp-wmi: add proper hotkey support 2008-09-02 19:21:39 -07:00
hpilo.c HP iLO driver 2008-07-21 21:55:02 -07:00
hpilo.h HP iLO driver 2008-07-21 21:55:02 -07:00
intel_menlow.c intel_menlo: fix build warning 2008-04-29 12:24:24 -04:00
ioc4.c drivers/misc: replace remaining __FUNCTION__ occurrences 2008-04-29 08:06:03 -07:00
Kconfig [IA64] Fix uniprocessor build w.r.t. SGI_XP and SGI_GRU 2008-08-04 13:39:28 -07:00
kgdbts.c kgdbts: Use HW breakpoints with CONFIG_DEBUG_RODATA 2008-05-28 12:49:57 -05:00
lkdtm.c NULL noise: drivers/misc 2008-03-30 14:18:41 -07:00
Makefile GRU Driver: driver/misc Makefile & Kconfig changes 2008-07-30 09:41:48 -07:00
msi-laptop.c Remove inclusions of <linux/autoconf.h> 2008-02-06 10:41:00 -08:00
phantom.c drivers/misc/phantom: note PCI 2008-07-25 10:53:44 -07:00
sony-laptop.c sony-laptop: BKL pushdown 2008-07-02 15:06:25 -06:00
tc1100-wmi.c tc1100-wmi: Add driver for HP Compaq TC1100 Tablets 2008-02-05 15:07:16 -05:00
thinkpad_acpi.c ACPI: thinkpad-acpi: wan radio control is not experimental 2008-08-28 19:24:49 +02:00
tifm_7xx1.c tifm: clear interrupt mask bits before setting them on adapter init 2008-03-10 18:01:18 -07:00
tifm_core.c memstick: initial commit for Sony MemoryStick support 2008-02-09 11:08:34 -08:00