[PATCH 2/3] bcma: SPROM: add macro for easier extraction

Rafał Miłecki zajec5 at gmail.com
Mon Jan 2 07:41:42 EST 2012


W dniu 2 stycznia 2012 13:20 użytkownik Peter Stuge <peter at stuge.se> napisał:
> Rafał Miłecki wrote:
>> +#define SPEX(_field, _offset, _mask, _shift) \
>> +     bus->sprom._field = ((sprom[SPOFF(_offset)] & (_mask)) >> (_shift))
>
> Maybe this should take at least bus as parameter too?

I also like the proposed solution because it let me fit some lines 80
chars length. See all the
SSB_SROM8_*_PA_[0-2]
from the next patch. Most of them are 80 char long ;)

-- 
Rafał



More information about the b43-dev mailing list