]> git.baikalelectronics.ru Git - kernel.git/commit
brcm80211: smac: remove phy api bypass in rate.h
authorArend van Spriel <arend@broadcom.com>
Tue, 18 Oct 2011 12:03:08 +0000 (14:03 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2011 20:54:09 +0000 (15:54 -0500)
commit95f4651be59ecd035ab5b2e93895a63ab6afa4a8
treec51d76255bde9e83348817b05d42e6a04f632e28
parent490a5a50cb701cb7220d4722be76dc20069ef5b3
brcm80211: smac: remove phy api bypass in rate.h

Obviously the phy api should be used to interface with the phy. In
rate.h a table within phy was accessed directly by declaring the
table extern in rate.h itself. This patch fixes this using the
provided api function to obtain the table reference. This bypass
was found by a sparse warning on the table not being defined static.

Reviewed-by: Alwin Beukers <alwin@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c
drivers/net/wireless/brcm80211/brcmsmac/rate.h