aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dma-buf.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-01-26 06:27:22 -0500
committerSumit Semwal <sumit.semwal@ti.com>2012-03-19 06:12:14 -0400
commit5375764f9408b8ef1fb8d6cd1ed0efd97dce4824 (patch)
tree05a88e01997b609418de73d53e9f6fbf06add73e /include/linux/dma-buf.h
parentc16fa4f2ad19908a47c63d8fa436a1178438c7e7 (diff)
dma-buf: Constify ops argument to dma_buf_export()
This allows drivers to make the dma buf operations structure constant. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Diffstat (limited to 'include/linux/dma-buf.h')
-rw-r--r--include/linux/dma-buf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h
index f8ac076afa52..86f624141048 100644
--- a/include/linux/dma-buf.h
+++ b/include/linux/dma-buf.h
@@ -114,8 +114,8 @@ struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
114 struct device *dev); 114 struct device *dev);
115void dma_buf_detach(struct dma_buf *dmabuf, 115void dma_buf_detach(struct dma_buf *dmabuf,
116 struct dma_buf_attachment *dmabuf_attach); 116 struct dma_buf_attachment *dmabuf_attach);
117struct dma_buf *dma_buf_export(void *priv, struct dma_buf_ops *ops, 117struct dma_buf *dma_buf_export(void *priv, const struct dma_buf_ops *ops,
118 size_t size, int flags); 118 size_t size, int flags);
119int dma_buf_fd(struct dma_buf *dmabuf); 119int dma_buf_fd(struct dma_buf *dmabuf);
120struct dma_buf *dma_buf_get(int fd); 120struct dma_buf *dma_buf_get(int fd);
121void dma_buf_put(struct dma_buf *dmabuf); 121void dma_buf_put(struct dma_buf *dmabuf);
@@ -138,8 +138,8 @@ static inline void dma_buf_detach(struct dma_buf *dmabuf,
138} 138}
139 139
140static inline struct dma_buf *dma_buf_export(void *priv, 140static inline struct dma_buf *dma_buf_export(void *priv,
141 struct dma_buf_ops *ops, 141 const struct dma_buf_ops *ops,
142 size_t size, int flags) 142 size_t size, int flags)
143{ 143{
144 return ERR_PTR(-ENODEV); 144 return ERR_PTR(-ENODEV);
145} 145}