ath9k: change entropy formula for easier understanding
authorMiaoqing Pan <miaoqing@codeaurora.org>
Tue, 9 Aug 2016 07:02:26 +0000 (15:02 +0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Oct 2016 14:22:44 +0000 (17:22 +0300)
commite463139a726276cd2995ed21c809504d6470f061
treed623c6e28ab03759181614f8136dcfee98004e5d
parentebaa4b1620bf69f2bc43cb45ea85fbafdaec23c3
ath9k: change entropy formula for easier understanding

The quality of ADC entropy is 10 bits of min-entropy for
a 32-bit value, change '(((x) * 8 * 320) >> 10)' to
'(((x) * 8 * 10) >> 5)' for easier understanding.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/rng.c