brcmutil: add macros for setting bitfields using mask/shift operations
authorArend van Spriel <arend@broadcom.com>
Sun, 3 Mar 2013 11:45:27 +0000 (12:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Mar 2013 21:28:40 +0000 (16:28 -0500)
commitedee1668bb1b7d977f39c34f63916b82647f024a
tree9e94acf886accbf1eb28c8261232292015de2e4d
parentbee1b848877b9e4512bdda480f73cda12b593e2f
brcmutil: add macros for setting bitfields using mask/shift operations

Added inline functions to set bitfields in an unsigned integer variable.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/include/brcmu_utils.h