android_kernel_xiaomi_sm8350/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
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
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-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
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
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
Makefile GRU Driver: driver/misc Makefile & Kconfig changes 2008-07-30 09:41:48 -07:00
msi-laptop.c
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
thinkpad_acpi.c ACPI: thinkpad-acpi: wan radio control is not experimental 2008-08-28 19:24:49 +02:00
tifm_7xx1.c
tifm_core.c