* [PATCH] Documentation: minor typo fix in mailbox.txt
@ 2015-08-03 1:30 Leo Yan
2015-08-14 0:04 ` Jonathan Corbet
0 siblings, 1 reply; 3+ messages in thread
From: Leo Yan @ 2015-08-03 1:30 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc, linux-kernel, Jassi Brar; +Cc: Leo Yan
Fix minor typo so that can pass correct pointer variable for
container_of().
Signed-off-by: Leo Yan <leo.yan@linaro.org>
---
Documentation/mailbox.txt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/mailbox.txt b/Documentation/mailbox.txt
index 1092ad9..f3f0ac2 100644
--- a/Documentation/mailbox.txt
+++ b/Documentation/mailbox.txt
@@ -51,8 +51,8 @@ struct demo_client {
*/
static void message_from_remote(struct mbox_client *cl, void *mssg)
{
- struct demo_client *dc = container_of(mbox_client,
- struct demo_client, cl);
+ struct demo_client *dc = container_of(cl,
+ struct demo_client, cl);
if (dc->async) {
if (is_an_ack(mssg)) {
/* An ACK to our last sample sent */
@@ -68,8 +68,8 @@ static void message_from_remote(struct mbox_client *cl, void *mssg)
static void sample_sent(struct mbox_client *cl, void *mssg, int r)
{
- struct demo_client *dc = container_of(mbox_client,
- struct demo_client, cl);
+ struct demo_client *dc = container_of(cl,
+ struct demo_client, cl);
complete(&dc->c);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: minor typo fix in mailbox.txt
2015-08-03 1:30 [PATCH] Documentation: minor typo fix in mailbox.txt Leo Yan
@ 2015-08-14 0:04 ` Jonathan Corbet
2015-08-14 5:49 ` Leo Yan
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Corbet @ 2015-08-14 0:04 UTC (permalink / raw)
To: Leo Yan; +Cc: linux-doc, linux-kernel, Jassi Brar
On Mon, 3 Aug 2015 09:30:25 +0800
Leo Yan <leo.yan@linaro.org> wrote:
> Fix minor typo so that can pass correct pointer variable for
> container_of().
Looks good to me, applied to the docs tree. I also took the opportunity
to eliminate the (now) needless line-splitting on the affected lines.
Thanks,
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: minor typo fix in mailbox.txt
2015-08-14 0:04 ` Jonathan Corbet
@ 2015-08-14 5:49 ` Leo Yan
0 siblings, 0 replies; 3+ messages in thread
From: Leo Yan @ 2015-08-14 5:49 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: linux-doc, linux-kernel, Jassi Brar
On Thu, Aug 13, 2015 at 06:04:11PM -0600, Jonathan Corbet wrote:
> On Mon, 3 Aug 2015 09:30:25 +0800
> Leo Yan <leo.yan@linaro.org> wrote:
>
> > Fix minor typo so that can pass correct pointer variable for
> > container_of().
>
> Looks good to me, applied to the docs tree. I also took the opportunity
> to eliminate the (now) needless line-splitting on the affected lines.
Yes, the line length is less than 78, so don't need splitting.
Thanks,
Leo Yan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-14 5:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-03 1:30 [PATCH] Documentation: minor typo fix in mailbox.txt Leo Yan
2015-08-14 0:04 ` Jonathan Corbet
2015-08-14 5:49 ` Leo Yan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).