usb: musb: cppi_dma.c: use DIV_ROUND_UP macro in cppi_next_(r|t)x_segment()
authorIvan Safonov <insafonov@gmail.com>
Mon, 17 Apr 2017 04:21:15 +0000 (23:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Apr 2017 14:48:26 +0000 (16:48 +0200)
commitf5332b000707b0b415291901846c4a8fc24f6a2e
tree5e0f88ab36581200608c884301c24a4f7cb0aabb
parentec1dafe8ec5f846d6b1b280309d8b03d25b096fd
usb: musb: cppi_dma.c: use DIV_ROUND_UP macro in cppi_next_(r|t)x_segment()

DIV_ROUND_UP is bit useful than series of "/" and "%" operations.
Replace "/%" sequence with DIV_ROUND_UP macro.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/cppi_dma.c