android_kernel_xiaomi_sm8350/drivers/usb/misc
Julia Lawall dfa5ec79d2 USB: 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: Greg Kroah-Hartman <gregkh@suse.de>
2008-04-24 21:16:39 -07:00
..
sisusbvga USB: Spelling fixes 2008-02-01 14:34:57 -08:00
adutux.c USB: FIx locks and urb->status in adutux (updated) 2007-11-28 13:58:34 -08:00
appledisplay.c drivers: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:16:32 -04:00
auerswald.c USB: auerswald: Convert ccp->mutex in a mutex 2008-04-24 21:16:38 -07:00
berry_charge.c
cypress_cy7c63.c USB: cypress_cy7c63: updated contact/usage information 2008-02-01 14:34:50 -08:00
cytherm.c USB: fix read vs. disconnect race in cytherm driver 2007-10-25 12:18:44 -07:00
emi26_fw.h
emi26.c USB: missing error check in emi26 2007-10-25 12:18:45 -07:00
emi62_fw_m.h
emi62_fw_s.h
emi62.c USB: missing error check in emi62 2007-10-25 12:18:45 -07:00
ftdi-elan.c USB: FTDI Elan driver: Convert ftdi->u132_lock to mutex 2007-10-25 12:18:43 -07:00
idmouse.c USB: fix locking in idmouse 2007-10-25 12:18:44 -07:00
iowarrior.c USB: constify function pointer tables 2008-02-01 14:35:04 -08:00
Kconfig
ldusb.c USB: add new vernier product id to ldusb.c 2008-02-21 15:38:53 -08:00
legousbtower.c USB: misc: legousbtower: semaphore to mutex 2008-02-01 14:35:02 -08:00
Makefile
phidget.c
phidget.h
phidgetkit.c
phidgetmotorcontrol.c
phidgetservo.c
rio500_usb.h
rio500.c USB rio500.c: fix check-after-use 2007-10-25 12:18:43 -07:00
trancevibrator.c USB: fix error handling in trancevibrator 2008-02-21 15:38:51 -08:00
usb_u132.h
usblcd.c USB: open disconnect race in usblcd 2007-10-25 12:18:46 -07:00
usbled.c USB: fix usbled disconnect read race #2 2007-11-28 13:58:33 -08:00
usbtest.c USB: use DIV_ROUND_UP 2008-04-24 21:16:39 -07:00
uss720.c [PARPORT] Kill useful 'irq' arg from parport_{generic_irq,ieee1284_interrupt} 2007-10-23 19:53:15 -04:00