Skip to content
Unverified Commit 11ae2e63 authored by Serge Semin's avatar Serge Semin Committed by Mark Brown
Browse files

spi: dw: Convert to using BITS_TO_BYTES() macro



Since commit dd3e7cba ("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: default avatarSerge Semin <fancer.lancer@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240424150657.9678-2-fancer.lancer@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6be871d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment