]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb2515199ae4a2b6758d1ab556be60808436afe96
treed623c6e28ab03759181614f8136dcfee98004e5d
parent2bf8888c145cdfd72b1a1cce7c83683c6d9f29e9
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