diff options
author | Leo Yan <leo.yan@linaro.org> | 2015-08-03 09:30:25 +0800 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2015-08-13 18:03:18 -0600 |
commit | 7bbac697e4a6e64cc4bae26d57310c916aa0da7a (patch) | |
tree | e2fb050bf4f65ffb5ab88ad5180e7025a4252371 /Documentation/mailbox.txt | |
parent | 4983953dbd038fd720e7e16eb9bad5d8ea059ccf (diff) | |
download | lwn-7bbac697e4a6e64cc4bae26d57310c916aa0da7a.tar.gz lwn-7bbac697e4a6e64cc4bae26d57310c916aa0da7a.zip |
Documentation: minor typo fix in mailbox.txt
Fix minor typo so that can pass correct pointer variable for
container_of().
Signed-off-by: Leo Yan <leo.yan@linaro.org>
[jc: tweaked formatting]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/mailbox.txt')
-rw-r--r-- | Documentation/mailbox.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Documentation/mailbox.txt b/Documentation/mailbox.txt index 1092ad9578da..7ed371c85204 100644 --- a/Documentation/mailbox.txt +++ b/Documentation/mailbox.txt @@ -51,8 +51,7 @@ 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 +67,7 @@ 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); } |