From: Mark Brown <broonie@kernel.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org,
Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Subject: Re: [PATCH] spi: Clarify (a)synchronous transfer_one()
Date: Tue, 14 Jan 2014 14:36:27 +0000 [thread overview]
Message-ID: <20140114143627.GO15567@sirena.org.uk> (raw)
In-Reply-To: <1389699296-28994-1-git-send-email-geert@linux-m68k.org>
[-- Attachment #1: Type: text/plain, Size: 987 bytes --]
On Tue, Jan 14, 2014 at 12:34:56PM +0100, Geert Uytterhoeven wrote:
> + * @transfer_one: transfer a single spi_transfer.
> + * Synchronous transfer methods must return 0 on success.
> + * Asynchronous transfer methods must return a strict-positive
> + * value on successful submission, and must call
> + * spi_finalize_current_transfer() when the driver is finished
> + * so the subsystem can issue the next transfer
This is hard to understand, I'd not expect people not comfortable with
English to readily follow what it means. Things like "strict-positive"
aren't common outside of mathematics and I myself had to think what an
asynchronous transfer_one() meant. Something along the lines of "return
0 if the trasfer is finished or a positive number if the transfer is in
progress and finalize will be called later" would be more readily
comprehensible. If you're concerned about positive just specify 1.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2014-01-14 14:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-14 11:34 Geert Uytterhoeven
2014-01-14 14:36 ` Mark Brown [this message]
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=20140114143627.GO15567@sirena.org.uk \
--to=broonie@kernel.org \
--cc=geert+renesas@linux-m68k.org \
--cc=geert@linux-m68k.org \
--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®