[IB] mthca: Use enum in mthca_alloc_db() prototype
authorRoland Dreier <rolandd@cisco.com>
Tue, 18 Oct 2005 20:22:16 +0000 (13:22 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 18 Oct 2005 20:22:16 +0000 (13:22 -0700)
Make the type parameter of mthca_alloc_db() be an enum mthca_db_type
instead of an int.  This doesn't have any practical effect but
documents the functions a little better.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_memfree.c
drivers/infiniband/hw/mthca/mthca_memfree.h

index 7bd7a4bec7b433f2e533602681a75d7e06553940..d63b1a14710060527031077b516e2d4377ff86c0 100644 (file)
@@ -487,7 +487,8 @@ void mthca_cleanup_user_db_tab(struct mthca_dev *dev, struct mthca_uar *uar,
        }
 }
 
-int mthca_alloc_db(struct mthca_dev *dev, int type, u32 qn, __be32 **db)
+int mthca_alloc_db(struct mthca_dev *dev, enum mthca_db_type type,
+                  u32 qn, __be32 **db)
 {
        int group;
        int start, end, dir;
index bafa51544aa39db8db19cf2626361550fec7ea89..29c01a4b26568a46b912f39bcb9d55ba35ef29c7 100644 (file)
@@ -173,7 +173,8 @@ void mthca_cleanup_user_db_tab(struct mthca_dev *dev, struct mthca_uar *uar,
 
 int mthca_init_db_tab(struct mthca_dev *dev);
 void mthca_cleanup_db_tab(struct mthca_dev *dev);
-int mthca_alloc_db(struct mthca_dev *dev, int type, u32 qn, __be32 **db);
+int mthca_alloc_db(struct mthca_dev *dev, enum mthca_db_type type,
+                  u32 qn, __be32 **db);
 void mthca_free_db(struct mthca_dev *dev, int type, int db_index);
 
 #endif /* MTHCA_MEMFREE_H */