linux_dsm_epyc7002/drivers/media/video/uvc
Julia Lawall e9e24cee67 V4L/DVB (8729): 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@
@@

@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: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-12 09:36:51 -02:00
..
Kconfig V4L/DVB (8234): uvcvideo: Make input device support optional 2008-07-20 07:18:09 -03:00
Makefile V4L/DVB (8178): uvc: Fix compilation breakage for the other drivers, if uvc is selected 2008-07-02 08:58:15 -03:00
uvc_ctrl.c V4L/DVB (9053): fix buffer overflow in uvc-video 2008-10-04 23:04:32 -03:00
uvc_driver.c V4L/DVB (8616): uvcvideo: Add support for two Bison Electronics webcams 2008-08-06 06:57:36 -03:00
uvc_isight.c V4L/DVB (8145a): USB Video Class driver 2008-06-30 17:31:13 -03:00
uvc_queue.c PAGE_ALIGN(): correctly handle 64-bit values on 32-bit architectures 2008-07-24 10:47:21 -07:00
uvc_status.c V4L/DVB (8234): uvcvideo: Make input device support optional 2008-07-20 07:18:09 -03:00
uvc_v4l2.c V4L/DVB (8430): videodev: move some functions from v4l2-dev.h to v4l2-common.h or v4l2-ioctl.h 2008-07-23 19:00:17 -03:00
uvc_video.c V4L/DVB (8729): Use DIV_ROUND_UP 2008-10-12 09:36:51 -02:00
uvcvideo.h v4l-dvb: remove legacy checks to allow support for kernels < 2.6.10 2008-07-20 07:17:52 -03:00