aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorJeremy Fertic <[email protected]>2018-12-22 21:57:43 -0700
committerJonathan Cameron <[email protected]>2019-01-05 17:57:06 +0000
commit78accaea117c1ae878774974fab91ac4a0b0e2b0 (patch)
treec36e58fd9fe151f8e03a299c5991254ed95e3097 /tools/perf/scripts/python/bin/stackcollapse-report
parent45130fb030aec26ac28b4bb23344901df3ec3b7f (diff)
staging: iio: adt7316: fix the dac write calculation
The lsb calculation is not masking the correct bits from the user input. Subtract 1 from (1 << offset) to correctly set up the mask to be applied to user input. The lsb register stores its value starting at the bit 7 position. adt7316_store_DAC() currently assumes the value is at the other end of the register. Shift the lsb value before storing it in a new variable lsb_reg, and write this variable to the lsb register. Fixes: 35f6b6b86ede ("staging: iio: new ADT7316/7/8 and ADT7516/7/9 driver") Signed-off-by: Jeremy Fertic <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions