spi: dw: Convert to using BITS_TO_BYTES() macro
authorSerge Semin <fancer.lancer@gmail.com>
Wed, 24 Apr 2024 15:06:42 +0000 (18:06 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2024 02:09:22 +0000 (11:09 +0900)
commit11ae2e63b2a517742d233c4e5b67b898c797973e
tree137e8a90f966dc961cdf5890a44512d8552cd234
parent6be871d5fd2ecac8987a63fbf7ee38e007d14133
spi: dw: Convert to using BITS_TO_BYTES() macro

Since commit dd3e7cba1627 ("ocfs2/dlm: move BITS_TO_BYTES() to bitops.h
for wider use") there is a generic helper available to calculate a number
of bytes needed to accommodate the specified number of bits. Let's use it
instead of the hard-coded DIV_ROUND_UP() macro function.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240424150657.9678-2-fancer.lancer@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-core.c