summaryrefslogtreecommitdiffstats
path: root/sound/synth/emux/emux_proc.c
diff options
context:
space:
mode:
authorLiam Beguin <liambeguin@gmail.com>2022-01-08 15:53:07 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-30 14:38:03 +0000
commit51593106b608ae4247cc8da928813347da16d025 (patch)
treeebfc852699be68b41c3febec94e32e9659bb16e4 /sound/synth/emux/emux_proc.c
parentca85123354e1a65a22170286387b4791997fe864 (diff)
downloadlinux-51593106b608ae4247cc8da928813347da16d025.tar.gz
linux-51593106b608ae4247cc8da928813347da16d025.tar.bz2
linux-51593106b608ae4247cc8da928813347da16d025.zip
iio: afe: rescale: use s64 for temporary scale calculations
All four scaling coefficients can take signed values. Make tmp a signed 64-bit integer and switch to div_s64() to preserve signs during 64-bit divisions. Fixes: 8b74816b5a9a ("iio: afe: rescale: new driver") Signed-off-by: Liam Beguin <liambeguin@gmail.com> Reviewed-by: Peter Rosin <peda@axentia.se> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220108205319.2046348-5-liambeguin@gmail.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'sound/synth/emux/emux_proc.c')
0 files changed, 0 insertions, 0 deletions