]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
commitcbc9d9e108f4f2a3c061ac6233a424accde8b564
tree69b3521b2bbc023ca7e9ac55dffae9a2695d9a12
parent4cc9cf2f437ccf6915100c2f38f63cfb1abad6f9
parente30b7a75666b3f444abfabed6a144642fa9994d8
spi: Introduce and use spi_bpw_to_bytes()

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).
MAINTAINERS
drivers/spi/spi.c
include/linux/spi/spi.h