rt2x00: Make rt2x00_queue_entry_for_each more flexible
Allow passing a void pointer to rt2x00_queue_entry_for_each which in turn in provided to the callback function. Furthermore, allow the callback function to stop processing by returning true. And also notify the caller of rt2x00_queue_entry_for_each if the loop was canceled by the callback. No functional changes, just preparation for an upcoming patch. Signed-off-by:Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by:
Ivo van Doorn <IvDoorn@gmail.com> Acked-by:
Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by:
John W. Linville <linville@tuxdriver.com>
Showing
- drivers/net/wireless/rt2x00/rt2x00queue.c 19 additions, 9 deletionsdrivers/net/wireless/rt2x00/rt2x00queue.c
- drivers/net/wireless/rt2x00/rt2x00queue.h 8 additions, 2 deletionsdrivers/net/wireless/rt2x00/rt2x00queue.h
- drivers/net/wireless/rt2x00/rt2x00usb.c 22 additions, 10 deletionsdrivers/net/wireless/rt2x00/rt2x00usb.c
Loading
Please register or sign in to comment