From patchwork Wed May 23 10:08:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Semwal X-Patchwork-Id: 8901 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 65B0823F04 for ; Wed, 23 May 2012 10:49:30 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 16E1DA18793 for ; Wed, 23 May 2012 10:49:30 +0000 (UTC) Received: by ghbz12 with SMTP id z12so1517287ghb.11 for ; Wed, 23 May 2012 03:49:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to :date:message-id:x-mailer:mime-version:x-mailman-approved-at:cc :subject:x-beenthere:x-mailman-version:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :content-type:content-transfer-encoding:sender:errors-to :x-gm-message-state; bh=S1F/KaecZtgMpoi224tWN0GQ/rJONlIqfdH47P/wbEg=; b=HX7y/A5OZwO/LuSJCHLfe4UX/e9ZjqE38Q/N5FnI5glipCE5cFDzb4LccFxSKr5rwQ 89UYNGCsyestqkc+d5AbUSY/ElwSiIjoNdW4GabHalQJM8QiuoRUFVnR42maz6nsB08c 9XrV9Fz1/konbhWXLO4yNCf4+XxQIZOYbu6tO0Tyax7gkbVdoyJGvi6DakuuNwH7JUqC dX5CdTTyHbh3kZqalhgV/6iykW1cXo9yWdBLI0fbLc0QBCtvfVitAchPtyDUGSmJpbEP QlsclfsKF+k6x8N2tWHba2x/uM+19aB6Stb17DKQdU1fVV/NYkdfqmrz4dxKLgl3/SJd ZYoQ== Received: by 10.50.195.234 with SMTP id ih10mr12590931igc.0.1337770169315; Wed, 23 May 2012 03:49:29 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.35.72 with SMTP id o8csp434303ibd; Wed, 23 May 2012 03:49:28 -0700 (PDT) Received: by 10.204.151.211 with SMTP id d19mr11439817bkw.63.1337770167753; Wed, 23 May 2012 03:49:27 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id iu12si15021599bkc.16.2012.05.23.03.49.25; Wed, 23 May 2012 03:49:27 -0700 (PDT) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SX985-0004a3-Bc; Wed, 23 May 2012 10:49:21 +0000 Received: from devils.ext.ti.com ([198.47.26.153]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SX8V5-00052Q-LS for linaro-mm-sig@lists.linaro.org; Wed, 23 May 2012 10:09:03 +0000 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id q4NA915Z007030; Wed, 23 May 2012 05:09:01 -0500 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q4NA91sj026834; Wed, 23 May 2012 05:09:01 -0500 Received: from dlelxv24.itg.ti.com (172.17.1.199) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Wed, 23 May 2012 05:09:01 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id q4NA919U016687; Wed, 23 May 2012 05:09:01 -0500 Received: from localhost (a0876505ubnlt.apr.dhcp.ti.com [172.24.137.136]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id q4NA8xW21274; Wed, 23 May 2012 05:08:59 -0500 (CDT) From: Sumit Semwal To: , , Date: Wed, 23 May 2012 15:38:48 +0530 Message-ID: <1337767728-32236-1-git-send-email-sumit.semwal@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 23 May 2012 10:49:19 +0000 Cc: Sumit Semwal Subject: [Linaro-mm-sig] [PATCH] dma-buf: minor documentation fixes. X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQm6x9C+gPc4PkLg1WImySJA5WN9nfDGya7fVNW34pVlJqaJB4Torc8YLf64JEqIr6NCJaaG Some minor inline documentation fixes for gaps resulting from new patches. Signed-off-by: Sumit Semwal --- drivers/base/dma-buf.c | 9 +++++---- include/linux/dma-buf.h | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c index c3c88b0..24e88fe 100644 --- a/drivers/base/dma-buf.c +++ b/drivers/base/dma-buf.c @@ -429,7 +429,7 @@ EXPORT_SYMBOL_GPL(dma_buf_kunmap); /** * dma_buf_mmap - Setup up a userspace mmap with the given vma - * @dma_buf: [in] buffer that should back the vma + * @dmabuf: [in] buffer that should back the vma * @vma: [in] vma for the mmap * @pgoff: [in] offset in pages where this mmap should start within the * dma-buf buffer. @@ -470,8 +470,9 @@ int dma_buf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma, EXPORT_SYMBOL_GPL(dma_buf_mmap); /** - * dma_buf_vmap - Create virtual mapping for the buffer object into kernel address space. Same restrictions as for vmap and friends apply. - * @dma_buf: [in] buffer to vmap + * dma_buf_vmap - Create virtual mapping for the buffer object into kernel + * address space. Same restrictions as for vmap and friends apply. + * @dmabuf: [in] buffer to vmap * * This call may fail due to lack of virtual mapping address space. * These calls are optional in drivers. The intended use for them @@ -491,7 +492,7 @@ EXPORT_SYMBOL_GPL(dma_buf_vmap); /** * dma_buf_vunmap - Unmap a vmap obtained by dma_buf_vmap. - * @dma_buf: [in] buffer to vmap + * @dmabuf: [in] buffer to vunmap */ void dma_buf_vunmap(struct dma_buf *dmabuf, void *vaddr) { diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h index a02b1ff..eb48f38 100644 --- a/include/linux/dma-buf.h +++ b/include/linux/dma-buf.h @@ -65,6 +65,9 @@ struct dma_buf_attachment; * mapping needs to be coherent - if the exporter doesn't directly * support this, it needs to fake coherency by shooting down any ptes * when transitioning away from the cpu domain. + * @vmap: [optional] creates a virtual mapping for the buffer into kernel + * address space. Same restrictions as for vmap and friends apply. + * @vunmap: [optional] unmaps a vmap from the buffer */ struct dma_buf_ops { int (*attach)(struct dma_buf *, struct device *,