spi: Introduce and use spi_bpw_to_bytes()
authorMark Brown <broonie@kernel.org>
Fri, 18 Apr 2025 04:11:47 +0000 (05:11 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 18 Apr 2025 04:11:47 +0000 (05:11 +0100)
Merge series from Andy Shevchenko <andriy.shevchenko@linux.intel.com>:

Recently in the discussion with David the idea of having
a common helper popped up. The helper converts the given
bits per word to bytes. The result will always be power-of-two
(e.g. for 37 bits it returns 8 bytes) or 0 for 0 input.
More details are in the respective code comment.

This mini-series introduces it and replaces current users
under drivers/spi and we expect more (and possibly some
lurking in other subsystems).

1  2 
MAINTAINERS
drivers/spi/spi.c
include/linux/spi/spi.h

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge