diff options
author | Jon Mason <jon.mason@intel.com> | 2013-07-29 16:46:43 -0700 |
---|---|---|
committer | Jon Mason <jon.mason@intel.com> | 2013-09-05 11:08:00 -0700 |
commit | f9a2cf890b8e6c0a4ce510593f6f3c58394dbcae (patch) | |
tree | dde0d736efa69a0b1b21042688c846deac77f8d1 /drivers/ntb/ntb_hw.c | |
parent | 3daa3a073e8813e4185d614f2c6b601ce39e2e5f (diff) |
NTB: Comment Fix
Add "data" ntb_register_db_callback parameter description comment and
correct poor spelling.
Signed-off-by: Jon Mason <jon.mason@intel.com>
Diffstat (limited to 'drivers/ntb/ntb_hw.c')
-rw-r--r-- | drivers/ntb/ntb_hw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index 69cd834a8380..7ed4ebc820e9 100644 --- a/drivers/ntb/ntb_hw.c +++ b/drivers/ntb/ntb_hw.c @@ -145,6 +145,7 @@ void ntb_unregister_event_callback(struct ntb_device *ndev) * ntb_register_db_callback() - register a callback for doorbell interrupt * @ndev: pointer to ntb_device instance * @idx: doorbell index to register callback, zero based + * @data: pointer to be returned to caller with every callback * @func: callback function to register * * This function registers a callback function for the doorbell interrupt @@ -1235,9 +1236,9 @@ static int ntb_create_callbacks(struct ntb_device *ndev) { int i; - /* Checken-egg issue. We won't know how many callbacks are necessary + /* Chicken-egg issue. We won't know how many callbacks are necessary * until we see how many MSI-X vectors we get, but these pointers need - * to be passed into the MSI-X register fucntion. So, we allocate the + * to be passed into the MSI-X register function. So, we allocate the * max, knowing that they might not all be used, to work around this. */ ndev->db_cb = kcalloc(ndev->limits.max_db_bits, |