]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: Replace open coded variant of spi_bpw_to_bytes()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 23 Mar 2026 14:04:45 +0000 (15:04 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 23 Mar 2026 15:45:00 +0000 (15:45 +0000)
commit9861e15f6347dcce65795b8dd680b491a54d59a9
tree67c0b78a834bc4d45933975b0cd884fd7175c581
parent5b7ac8ca0eae522735d24f7c5c2296c8094328b1
spi: Replace open coded variant of spi_bpw_to_bytes()

__spi_validate() open codes the functionality of spi_bpw_to_bytes().
Replace the custom piece by the call to the mentioned function.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260323140445.3496736-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c