summaryrefslogtreecommitdiff
path: root/drivers/nfc/Makefile
diff options
context:
space:
mode:
authorLiam Beguin <liambeguin@gmail.com>2022-02-12 21:57:34 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-27 13:38:22 +0000
commit2eb30577f2533463afed3456141d4becc4f79e91 (patch)
treef509210b0d40fd695bdda219b2d0f653e0f4145f /drivers/nfc/Makefile
parentf5fc003d48033559314f1c9de8198f58f14ed557 (diff)
iio: afe: rescale: reduce risk of integer overflow
Reduce the risk of integer overflow by doing the scale calculation on a 64-bit integer. Since the rescaling is only performed on *val, reuse the IIO_VAL_FRACTIONAL_LOG2 case. 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/20220213025739.2561834-6-liambeguin@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/nfc/Makefile')
0 files changed, 0 insertions, 0 deletions