Re: [PATCH v2 1/2] spi: Add spi_bpw_to_bytes() helper and use it
From: Andy Shevchenko
Date: Thu Apr 17 2025 - 11:23:20 EST
On Thu, Apr 17, 2025 at 06:17:52PM +0300, Andy Shevchenko wrote:
> This helper converts the given bits per word to bytes. The result
> will always be power-of-two, e.g.,
>
> =============== =================
> Input (in bits) Output (in bytes)
> =============== =================
> 0 0
> 5 1
> 9 2
> 2 4
> 3 8
My gosh, it lost the couple of characters here, should be 21 and 37 respectively...
I'll fix this in v3.
> =============== =================
...
> + * This function converts the given @bpw to bytes. The result is always
> + * power-of-two, e.g.,
> + *
> + * =============== =================
> + * Input (in bits) Output (in bytes)
> + * =============== =================
> + * 0 0
> + * 5 1
> + * 9 2
> + * 2 4
> + * 3 8
As per above,
> + * =============== =================
--
With Best Regards,
Andy Shevchenko