aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorZicheng Qu <[email protected]>2024-10-28 14:20:27 +0000
committerJonathan Cameron <[email protected]>2024-10-31 21:07:26 +0000
commitc174b53e95adf2eece2afc56cd9798374919f99a (patch)
treec01543a01cd185cab563e55af7c6b1f007af1de5 /tools/perf/scripts/python/gecko.py
parent3a4187ec454e19903fd15f6e1825a4b84e59a4cd (diff)
ad7780: fix division by zero in ad7780_write_raw()
In the ad7780_write_raw() , val2 can be zero, which might lead to a division by zero error in DIV_ROUND_CLOSEST(). The ad7780_write_raw() is based on iio_info's write_raw. While val is explicitly declared that can be zero (in read mode), val2 is not specified to be non-zero. Fixes: 9085daa4abcc ("staging: iio: ad7780: add gain & filter gpio support") Cc: [email protected] Signed-off-by: Zicheng Qu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions