summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorHarry Yang <harryy@codeaurora.org>2017-03-31 14:28:20 -0700
committerHarry Yang <harryy@codeaurora.org>2017-03-31 15:41:21 -0700
commit6399b30218075745b30ebe218e75348cf84e2820 (patch)
treebed447b082d23cdf33b484c9cd12ced902e7dcc0 /security/selinux/hooks.c
parent92124c76a2bd3e0c1d98de91d09199558117a1a9 (diff)
qcom: qnovo: Fix PCURx reporting error
PCURx[MSB:LSB] is a 14-bit signed raw data, but treated as two full bytes during reg reading, as a result bit 14 and 15 are filled with 0s. When the raw data is negative, the mistreated reading gives positive result. Hence the eventual PCURx after applying the gain and offset corrections is incorrect. Fix it by extending sign bit when negative. Change-Id: Ia35406809355bd5e2d6cfeb890dd870430e38f66 Signed-off-by: Harry Yang <harryy@codeaurora.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions