diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-03-31 16:54:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-26 13:51:08 -0400 |
commit | 0a182fd88f8180b342f753f04c7d5507b5891c96 (patch) | |
tree | 056f2ec8a8f0600175fce41468edfd7d0b69cef3 /drivers | |
parent | ea2db495f92ad2cf3301623e60cb95b4062bc484 (diff) |
ssb: Use relative offsets for SPROM
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ssb/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c index 5bb1278759c1..3f556d6ec4c2 100644 --- a/drivers/ssb/pci.c +++ b/drivers/ssb/pci.c | |||
@@ -167,7 +167,7 @@ err_pci: | |||
167 | } | 167 | } |
168 | 168 | ||
169 | /* Get the word-offset for a SSB_SPROM_XXX define. */ | 169 | /* Get the word-offset for a SSB_SPROM_XXX define. */ |
170 | #define SPOFF(offset) (((offset) - SSB_SPROM_BASE1) / sizeof(u16)) | 170 | #define SPOFF(offset) ((offset) / sizeof(u16)) |
171 | /* Helper to extract some _offset, which is one of the SSB_SPROM_XXX defines. */ | 171 | /* Helper to extract some _offset, which is one of the SSB_SPROM_XXX defines. */ |
172 | #define SPEX16(_outvar, _offset, _mask, _shift) \ | 172 | #define SPEX16(_outvar, _offset, _mask, _shift) \ |
173 | out->_outvar = ((in[SPOFF(_offset)] & (_mask)) >> (_shift)) | 173 | out->_outvar = ((in[SPOFF(_offset)] & (_mask)) >> (_shift)) |