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

Peter Stuge peter at stuge.se
Mon Jan 2 07:20:18 EST 2012


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?


//Peter



More information about the b43-dev mailing list