Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Leo Yan and committed by
Jonathan Corbet
7bbac697 4983953d

+2 -4
+2 -4
Documentation/mailbox.txt
··· 51 51 */ 52 52 static void message_from_remote(struct mbox_client *cl, void *mssg) 53 53 { 54 - struct demo_client *dc = container_of(mbox_client, 55 - struct demo_client, cl); 54 + struct demo_client *dc = container_of(cl, struct demo_client, cl); 56 55 if (dc->async) { 57 56 if (is_an_ack(mssg)) { 58 57 /* An ACK to our last sample sent */ ··· 67 68 68 69 static void sample_sent(struct mbox_client *cl, void *mssg, int r) 69 70 { 70 - struct demo_client *dc = container_of(mbox_client, 71 - struct demo_client, cl); 71 + struct demo_client *dc = container_of(cl, struct demo_client, cl); 72 72 complete(&dc->c); 73 73 } 74 74