Commit 7bbac697 authored by Leo Yan's avatar Leo Yan Committed by Jonathan Corbet

Documentation: minor typo fix in mailbox.txt

Fix minor typo so that can pass correct pointer variable for
container_of().
Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
[jc: tweaked formatting]
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 4983953d
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment