]> git.baikalelectronics.ru Git - kernel.git/commit
brcmsmac: Add helper function for updating txavail count
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Nov 2012 14:07:53 +0000 (08:07 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Nov 2012 19:03:37 +0000 (14:03 -0500)
commitf84680f03598ab75ea399da97f7564c0cd8a529b
treee59eb3ae6def081b7b67dd31d2a44f91f8de0d61
parent8fa6367fa639d75d5251d779de7f29eff24e4c82
brcmsmac: Add helper function for updating txavail count

Use this helper function rather than open-coding the same calculation in
multiple places.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Tested-by: Daniel Wagner <wagi@monom.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/dma.c