Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Daniel Thompson Newsgroups: linux.kernel Subject: [RESEND PATCH v2 v4.1-rc8 2/2] drm: prime: Document gem_prime_mmap Date: Fri, 19 Jun 2015 16:00:01 +0200 Message-ID: References: X-Original-To: David Airlie X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6svAv/8n8mCgFK9T6ZC6ZJg2Z6Qh/a5L2TvBASTZvc4=; b=G9lSjzIWQG3f65mWqK3g1SE3vZjctYFF0DChIxrpM0cC86A12UIzec7dUAE9z0qxDy ZujIDXKmsyR/TynN/R2/+v3JlyY/Fav7nXbnIKf756MyZgJPz17E+BTJoaeCoZvxt7Up 9eHHMbWwpIxEOlFGpPxz6CoM25cs8C7OBx6qPyBtsfAkXkfsD5RsB8f5D10V5b+NFR8j X1vdPYihAjrXlhMTNFzIfdbAfOLvyL3fTs4KjudNc/pONPECHH8BK/n4K80ByUmg03j3 bcj91KfZupt3Z9fhBK4bcyHhPxrMcVEsnm8cPuSs1RRUJe++WIflr4IK28PsNdSQi+pq zpDw== X-Gm-Message-State: ALoCoQnOoGhAxqDuzSeI5Y5VNUwgp/2aoYUOpbLw0vwzFTW+JkTbLmCVuUbk2ELZ2IDyn6wZjk2G X-Received: by 10.180.77.136 with SMTP id s8mr6856918wiw.7.1434721966810; Fri, 19 Jun 2015 06:52:46 -0700 (PDT) X-Mailer: git-send-email 2.4.3 Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 36 Organization: linux.* mail to news gateway X-Original-Cc: Daniel Thompson , dri-devel@lists.freedesktop.org, Rob Clark , Benjamin Gaignard , Damien Hobson-Garcia , linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, John Stultz , Sumit Semwal X-Original-Date: Fri, 19 Jun 2015 14:52:29 +0100 X-Original-Message-ID: <1434721949-25732-3-git-send-email-daniel.thompson@linaro.org> X-Original-References: <1434721949-25732-1-git-send-email-daniel.thompson@linaro.org> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: aioe.org linux.kernel:1168790 gem_prime_map is not currently described in the DRM manual, lets document it. Signed-off-by: Daniel Thompson --- drivers/gpu/drm/drm_prime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c index 6d2cf4fb4038..3b40a415f45d 100644 --- a/drivers/gpu/drm/drm_prime.c +++ b/drivers/gpu/drm/drm_prime.c @@ -309,7 +309,7 @@ static const struct dma_buf_ops drm_gem_prime_dmabuf_ops = { * Drivers can implement @gem_prime_export and @gem_prime_import in terms of * simpler APIs by using the helper functions @drm_gem_prime_export and * @drm_gem_prime_import. These functions implement dma-buf support in terms of - * five lower-level driver callbacks: + * six lower-level driver callbacks: * * Export callbacks: * @@ -321,6 +321,8 @@ static const struct dma_buf_ops drm_gem_prime_dmabuf_ops = { * * - @gem_prime_vunmap: vunmap a buffer exported by your driver * + * - @gem_prime_mmap (optional): mmap a buffer exported by your driver + * * Import callback: * * - @gem_prime_import_sg_table (import): produce a GEM object from another -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/