Make these function no be static
- ion_handle_get
- ion_handle_put
- ion_handle_get_by_id
for rockchip ion driver to use.
Change-Id: Idb24f1db7d8dc5e2d36a7bbd46f54ac96b75b3e7
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
-static void ion_handle_get(struct ion_handle *handle)
+void ion_handle_get(struct ion_handle *handle)
{
kref_get(&handle->ref);
}
{
kref_get(&handle->ref);
}
-static int ion_handle_put(struct ion_handle *handle)
+int ion_handle_put(struct ion_handle *handle)
{
struct ion_client *client = handle->client;
int ret;
{
struct ion_client *client = handle->client;
int ret;
return ERR_PTR(-EINVAL);
}
return ERR_PTR(-EINVAL);
}
-static struct ion_handle *ion_handle_get_by_id(struct ion_client *client,
- int id)
+struct ion_handle *ion_handle_get_by_id(struct ion_client *client,
+ int id)
{
struct ion_handle *handle;
{
struct ion_handle *handle;
*/
struct ion_handle *ion_import_dma_buf(struct ion_client *client, int fd);
*/
struct ion_handle *ion_import_dma_buf(struct ion_client *client, int fd);
+void ion_handle_get(struct ion_handle *handle);
+
+int ion_handle_put(struct ion_handle *handle);
+
+struct ion_handle *ion_handle_get_by_id(struct ion_client *client,
+ int id);
+
#endif /* _LINUX_ION_H */
#endif /* _LINUX_ION_H */