acrn-kernel/sound/pci/asihpi
Lars-Peter Clausen af787b2e83 ALSA: asihpi: Use DIV_ROUND_UP() instead of open-coding it
Use DIV_ROUND_UP() instead of open-coding it. This documents intent
and makes it more clear what is going on for the casual reviewer.

Generated using the following the Coccinelle semantic patch.

// <smpl>
@@
expression x, y;
@@
-(((x) + (y) - 1) / (y))
+DIV_ROUND_UP(x, y)
// </smpl>

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20201223172229.781-3-lars@metafoo.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-12-25 09:11:48 +01:00
..
Makefile
asihpi.c
hpi.h
hpi6000.c
hpi6000.h
hpi6205.c
hpi6205.h
hpi_internal.h
hpi_version.h
hpicmn.c
hpicmn.h
hpidebug.c
hpidebug.h
hpidspcd.c
hpidspcd.h
hpifunc.c
hpimsginit.c
hpimsginit.h
hpimsgx.c
hpimsgx.h
hpioctl.c
hpioctl.h
hpios.c
hpios.h
hpipcida.h