summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cma_priv.h
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2020-01-26 16:26:49 +0200
committerJason Gunthorpe <jgg@mellanox.com>2020-02-11 13:55:13 -0400
commit5ff8c8fa44c2cb74f3066ec4a531265db69b86c5 (patch)
tree37916c3256ca845bf6e49e6104a92f3f26a32339 /drivers/infiniband/core/cma_priv.h
parentcc055dd3a71352759a6c7ecaee612eeaef93ef22 (diff)
downloadlinux-5ff8c8fa44c2cb74f3066ec4a531265db69b86c5.tar.bz2
RDMA/cma: Rename cma_device ref/deref helpers to to get/put
Helper functions which increment/decrement reference count of the structure read better when they are named with the get/put suffix. Hence, rename cma_ref/deref_dev() to cma_dev_get/put(). Link: https://lore.kernel.org/r/20200126142652.104803-5-leon@kernel.org Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/cma_priv.h')
-rw-r--r--drivers/infiniband/core/cma_priv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/cma_priv.h b/drivers/infiniband/core/cma_priv.h
index ca7307277518..4e04c442ff86 100644
--- a/drivers/infiniband/core/cma_priv.h
+++ b/drivers/infiniband/core/cma_priv.h
@@ -111,8 +111,8 @@ static inline void cma_configfs_exit(void)
}
#endif
-void cma_ref_dev(struct cma_device *dev);
-void cma_deref_dev(struct cma_device *dev);
+void cma_dev_get(struct cma_device *dev);
+void cma_dev_put(struct cma_device *dev);
typedef bool (*cma_device_filter)(struct ib_device *, void *);
struct cma_device *cma_enum_devices_by_ibdev(cma_device_filter filter,
void *cookie);