[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aAEcqC9R6GDOr5L4@smile.fi.intel.com>
Date: Thu, 17 Apr 2025 18:22:16 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Mark Brown <broonie@...nel.org>, linux-spi@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: David Lechner <dlechner@...libre.com>
Subject: Re: [PATCH v2 1/2] spi: Add spi_bpw_to_bytes() helper and use it
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
Powered by blists - more mailing lists