summaryrefslogtreecommitdiff
path: root/include/net/sctp
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@free-electrons.com>2017-12-22 17:14:05 +0100
committerEduardo Valentin <edubezval@gmail.com>2018-01-01 13:15:41 -0800
commit27d92f27ae6c187978eb497fb5f366e7cb807d36 (patch)
tree179d23ab51a8008acc8d0f75a017383a5de5aa07 /include/net/sctp
parent7f3be017a88a7b351def8c3e7e4cb37dea2974b7 (diff)
thermal: armada: Simplify the check of the validity bit
All Armada SoCs use one bit to declare if the sensor values are valid. This bit moves across the versions of the IP. The method until then was to do both a shift and compare with an useless flag of "0x1". It is clearer and quicker to directly save the value that must be ANDed instead of the bit position and do a single bitwise AND operation. Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com> Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'include/net/sctp')
0 files changed, 0 insertions, 0 deletions