From: Mark Brown Date: Fri, 18 Apr 2025 04:11:47 +0000 (+0100) Subject: spi: Introduce and use spi_bpw_to_bytes() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cbc9d9e108f4f2a3c061ac6233a424accde8b564;p=users%2Fwilly%2Flinux.git spi: Introduce and use spi_bpw_to_bytes() Merge series from Andy Shevchenko : 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). --- cbc9d9e108f4f2a3c061ac6233a424accde8b564