From: Gabor Juhos Date: Thu, 22 Aug 2013 18:53:22 +0000 (+0200) Subject: rt2x00: rt2800lib: don't hardcode beacon offsets X-Git-Tag: v3.12-rc1~132^2~84^2^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=634b80595fef79071d82bc231b7f82c4f808a1e8;p=pandora-kernel.git 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 Acked-by: Helmut Schaa Signed-off-by: John W. Linville --- Reading git-diff-tree failed