bitops: Provide generic sign_extend32 function
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Mon, 30 Aug 2010 19:04:01 +0000 (19:04 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:27:04 +0000 (13:27 -0500)
commit7919a57bc608140aa8614c19eac40c6916fb61d2
tree0813ff8983a937eae8636808167bc59aa0e80c34
parente4b3fdb80021bc0a3239bfc2a873a6d7c6ac52a1
bitops: Provide generic sign_extend32 function

This patch moves code out from wireless drivers where two different
functions are defined in three code locations for the same purpose and
provides a common function to sign extend a 32-bit value.

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/phy.c
drivers/net/wireless/ath/ath9k/ar5008_phy.c
drivers/net/wireless/ath/ath9k/ar9002_phy.c
drivers/net/wireless/ath/ath9k/ar9003_phy.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/iwlwifi/iwl-4965.c
include/linux/bitops.h