brcmfmac: streamline SDIO read frame routine
authorFranky Lin <frankyl@broadcom.com>
Wed, 19 Sep 2012 20:21:11 +0000 (22:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Sep 2012 19:02:05 +0000 (15:02 -0400)
commit4754fceeb9a6cd04e5d51659a8309e9e623a09a6
tree1bb8b5fd7653dc32c71316b06955e3cd081bf4bc
parent803599d4041812a2e90d7e9dd423b6977c56e1fb
brcmfmac: streamline SDIO read frame routine

SDIO read non-glomming frame routine handles first frame and
follow up frame read separately. But they share a lot of common
code. This patch abstracts a brcmf_sdio_hdparser function and
optimize the code flow for better readability and future
optimization.

Reviewed-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c