From patchwork Mon Aug 3 01:30:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 51833 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id BD6A0229FD for ; Mon, 3 Aug 2015 01:31:04 +0000 (UTC) Received: by wijp15 with SMTP id p15sf8536819wij.3 for ; Sun, 02 Aug 2015 18:31:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=jZTnwpF1I6MJe+tY+wza2criAWMqN5cx0roDCKT8Epc=; b=bvh5exjZYXBreRrA6DYR1Ag2aJdFxdAT4hbQHpJy1tj7igjdLTWFgbyde64dlI+0tZ KZIbWKH62WfIGB9TJ73swDXDr35ztoavFa8eFbGSVTKKYyONK9nKEsxySpE8HV2qgGiv pHOPKQNtVkpGEc30b1tIvVCD7vqKbKTUOhPWiqzaDxzv9rqzPj3ro6bScRUQGN803kg3 AXrGEa1DaQF314gjGOGyQOrCYpxJ+VbNBLpMvDZbEg1i36hmVITBmum1ekLU9HZBPcha GodqmTqTn+u60JkhZSa8eTllXDV9TrVjN1FneEcuMlclJvTwxZ7uXBrNfqeADZZawLmv 7QYg== X-Gm-Message-State: ALoCoQn2O7M3PR1Y5bKPHtUtywZbftCm9SnMYyzGtO4EBu+CKVP9YDTIeJN7omgq6BdN6ypBaeHX X-Received: by 10.112.173.230 with SMTP id bn6mr4784425lbc.15.1438565463822; Sun, 02 Aug 2015 18:31:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.105 with SMTP id i9ls480593laa.96.gmail; Sun, 02 Aug 2015 18:31:03 -0700 (PDT) X-Received: by 10.112.185.100 with SMTP id fb4mr14438016lbc.79.1438565463516; Sun, 02 Aug 2015 18:31:03 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id vt9si10673032lac.20.2015.08.02.18.31.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Aug 2015 18:31:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbbyj8 with SMTP id yj8so70028636lbb.0 for ; Sun, 02 Aug 2015 18:31:03 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr14785784lbc.32.1438565463382; Sun, 02 Aug 2015 18:31:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1601193lba; Sun, 2 Aug 2015 18:31:02 -0700 (PDT) X-Received: by 10.68.104.227 with SMTP id gh3mr18649710pbb.108.1438565461918; Sun, 02 Aug 2015 18:31:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id by12si2828963pdb.100.2015.08.02.18.31.00; Sun, 02 Aug 2015 18:31:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751787AbbHCBaj (ORCPT + 28 others); Sun, 2 Aug 2015 21:30:39 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:33499 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750918AbbHCBah (ORCPT ); Sun, 2 Aug 2015 21:30:37 -0400 Received: by padck2 with SMTP id ck2so76524877pad.0 for ; Sun, 02 Aug 2015 18:30:37 -0700 (PDT) X-Received: by 10.68.182.3 with SMTP id ea3mr18479156pbc.126.1438565437338; Sun, 02 Aug 2015 18:30:37 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by smtp.gmail.com with ESMTPSA id o4sm11472787pdj.35.2015.08.02.18.30.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Aug 2015 18:30:36 -0700 (PDT) From: Leo Yan To: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jassi Brar Cc: Leo Yan Subject: [PATCH] Documentation: minor typo fix in mailbox.txt Date: Mon, 3 Aug 2015 09:30:25 +0800 Message-Id: <1438565425-20226-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leo.yan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Fix minor typo so that can pass correct pointer variable for container_of(). Signed-off-by: Leo Yan --- 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); }