From: cem Date: Tue, 13 Oct 2015 20:55:21 +0000 (+0000) Subject: NTB: MFV f9a2cf89: Comment Fix X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=804e50d7252c0e4ed7c8c534759562fdac9796f9;p=people%2Fjulieng%2Ffreebsd.git NTB: MFV f9a2cf89: Comment Fix Add "data" ntb_register_db_callback parameter description comment and correct poor speling. Authored by: Jon Mason Obtained from: Linux (Dual BSD/GPL driver) Sponsored by: EMC / Isilon Storage Division --- diff --git a/sys/dev/ntb/if_ntb/if_ntb.c b/sys/dev/ntb/if_ntb/if_ntb.c index 6d423317c468..81ebe73a4208 100644 --- a/sys/dev/ntb/if_ntb/if_ntb.c +++ b/sys/dev/ntb/if_ntb/if_ntb.c @@ -715,7 +715,7 @@ ntb_transport_link_up(struct ntb_transport_qp *qp) * @len: length of the data buffer * * Enqueue a new transmit buffer onto the transport queue from which a NTB - * payload will be transmitted. This assumes that a lock is behing held to + * payload will be transmitted. This assumes that a lock is being held to * serialize access to the qp. * * RETURNS: An appropriate ERRNO error value on error, or zero for success. @@ -1311,7 +1311,7 @@ ntb_qp_link_cleanup(struct ntb_transport_qp *qp) * * Notify NTB transport layer of client's desire to no longer receive data on * transport queue specified. It is the client's responsibility to ensure all - * entries on queue are purged or otherwise handled appropraitely. + * entries on queue are purged or otherwise handled appropriately. */ static void ntb_transport_link_down(struct ntb_transport_qp *qp) diff --git a/sys/dev/ntb/ntb_hw/ntb_hw.c b/sys/dev/ntb/ntb_hw/ntb_hw.c index 43927a712492..66d0d7443096 100644 --- a/sys/dev/ntb/ntb_hw/ntb_hw.c +++ b/sys/dev/ntb/ntb_hw/ntb_hw.c @@ -1140,6 +1140,7 @@ ntb_unregister_event_callback(struct ntb_softc *ntb) * ntb_register_db_callback() - register a callback for doorbell interrupt * @ntb: pointer to ntb_softc 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