From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Mark Brown <broonie@kernel.org>,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: David Lechner <dlechner@baylibre.com>
Subject: Re: [PATCH v2 1/2] spi: Add spi_bpw_to_bytes() helper and use it
Date: Thu, 17 Apr 2025 18:22:16 +0300 [thread overview]
Message-ID: <aAEcqC9R6GDOr5L4@smile.fi.intel.com> (raw)
In-Reply-To: <20250417151958.490174-2-andriy.shevchenko@linux.intel.com>
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
next prev parent reply other threads:[~2025-04-17 15:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-17 15:17 [PATCH v2 0/2] spi: Introduce and use spi_bpw_to_bytes() Andy Shevchenko
2025-04-17 15:17 ` [PATCH v2 1/2] spi: Add spi_bpw_to_bytes() helper and use it Andy Shevchenko
2025-04-17 15:22 ` Andy Shevchenko [this message]
2025-04-17 15:17 ` [PATCH v2 2/2] spi: dw: Use spi_bpw_to_bytes() helper Andy Shevchenko
2025-04-17 15:29 ` [PATCH v2 0/2] spi: Introduce and use spi_bpw_to_bytes() David Lechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aAEcqC9R6GDOr5L4@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=broonie@kernel.org \
--cc=dlechner@baylibre.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®