diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-01-26 11:27:22 (GMT) |
---|---|---|
committer | Sumit Semwal <sumit.semwal@ti.com> | 2012-03-19 10:12:14 (GMT) |
commit | 5375764f9408b8ef1fb8d6cd1ed0efd97dce4824 (patch) | |
tree | 05a88e01997b609418de73d53e9f6fbf06add73e /drivers/base/dma-buf.c | |
parent | c16fa4f2ad19908a47c63d8fa436a1178438c7e7 (diff) | |
download | linux-5375764f9408b8ef1fb8d6cd1ed0efd97dce4824.tar.xz |
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 'drivers/base/dma-buf.c')
-rw-r--r-- | drivers/base/dma-buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c index e38ad24..965833a 100644 --- a/drivers/base/dma-buf.c +++ b/drivers/base/dma-buf.c @@ -71,7 +71,7 @@ static inline int is_dma_buf_file(struct file *file) * ops, or error in allocating struct dma_buf, will return negative error. * */ -struct dma_buf *dma_buf_export(void *priv, struct dma_buf_ops *ops, +struct dma_buf *dma_buf_export(void *priv, const struct dma_buf_ops *ops, size_t size, int flags) { struct dma_buf *dmabuf; |