staging: ion: make some function not static
authorJianqun Xu <jay.xu@rock-chips.com>
Thu, 26 Nov 2015 02:23:34 +0000 (10:23 +0800)
committerJianqun xu <jay.xu@rock-chips.com>
Mon, 30 Nov 2015 06:26:07 +0000 (14:26 +0800)
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>
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion.h

index e237e9f3312d6b99e5d2eac4a07f534ce03690c2..92d62d1ce8cde23fde3b16c66fc588e708584c61 100644 (file)
@@ -380,12 +380,12 @@ struct ion_buffer *ion_handle_buffer(struct ion_handle *handle)
        return handle->buffer;
 }
 
-static void ion_handle_get(struct ion_handle *handle)
+void ion_handle_get(struct ion_handle *handle)
 {
        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;
@@ -415,8 +415,8 @@ static struct ion_handle *ion_handle_lookup(struct ion_client *client,
        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;
 
index b860c5f579f57b6067ca987a9dfa94590bc7d1c1..86575525db34717d05049323a69a2c0b5c180aec 100644 (file)
@@ -202,4 +202,11 @@ int ion_share_dma_buf_fd(struct ion_client *client, struct ion_handle *handle);
  */
 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 */