summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNikhil Gautam <nikhilgtr@gmail.com>2026-07-14 17:01:32 +0530
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-08-07 23:51:04 +0100
commitafa28741c9a2cf6edb2e41e25ff146a562160bb3 (patch)
treee592fda26e32ba7e7e673ce7485abcd258f6f4d5 /tools/perf/scripts/python/bin
parent3b2cd82c524c75a2173f2e3f874652a75f81cd1d (diff)
iio: light: opt4001: Fix incompatible pointer type passed to div_u64_rem()
div_u64_rem() takes a u32 * for the remainder but is passed val2, which is an int *. There is no functional impact as int and u32 have the same size and representation on all supported architectures and the remainder is always smaller than the divisor, so it fits in the positive range of int. Fix the type mismatch by using a local u32 for the remainder and assigning the result to *val2. Fixes: 9a9608418292 ("iio: light: Add support for TI OPT4001 light sensor") Signed-off-by: Nikhil Gautam <nikhilgtr@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions