summaryrefslogtreecommitdiff
path: root/drivers/bcma
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-08-22 20:53:22 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-08-26 14:09:01 -0400
commit634b80595fef79071d82bc231b7f82c4f808a1e8 (patch)
tree2cc23217226bd567c88f99f615b905196245401d /drivers/bcma
parent21c6af6b69b609b7934caaccda1b4535dceb402c (diff)
downloadlinux-next-634b80595fef79071d82bc231b7f82c4f808a1e8.tar.gz
rt2x00: rt2800lib: don't hardcode beacon offsets
The values written into the BCN_OFFSET[01] registers are hardcoded in the rt2800_init_register function. Add a macro and a helper function to derive these values directly from the base address of a given beacon, and use the new function instead of the hardcoded numbers. The patch contains no functional changes. The programmed register values are the same before and after the patch. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Acked-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma')
0 files changed, 0 insertions, 0 deletions