diff options
author | Miquel Raynal <[email protected]> | 2017-12-22 17:14:05 +0100 |
---|---|---|
committer | Eduardo Valentin <[email protected]> | 2018-01-01 13:15:41 -0800 |
commit | 27d92f27ae6c187978eb497fb5f366e7cb807d36 (patch) | |
tree | 179d23ab51a8008acc8d0f75a017383a5de5aa07 /lib/netdev-notifier-error-inject.c | |
parent | 7f3be017a88a7b351def8c3e7e4cb37dea2974b7 (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 <[email protected]>
Reviewed-by: Gregory CLEMENT <[email protected]>
Signed-off-by: Eduardo Valentin <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions