diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-12-02 19:13:06 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-30 10:32:23 +0100 |
| commit | d06a4f6c2b18663d1eaa48ea8a4429b496c7e72e (patch) | |
| tree | 22e60af655bc58610d4715a532e2959ecef2b920 /tools/perf/scripts/python/stackcollapse.py | |
| parent | b6ffc2de37253b7e0559d249c5c8d7d8f2296dca (diff) | |
iio: adc: pac1934: Fix clamped value in pac1934_reg_snapshot
commit da934ef0fdff5ba21e82ec3ab3f95fe73137b0c9 upstream.
The local variable 'curr_energy' was never clamped to
PAC_193X_MIN_POWER_ACC or PAC_193X_MAX_POWER_ACC because the return
value of clamp() was not used. Fix this by assigning the clamped value
back to 'curr_energy'.
Cc: stable@vger.kernel.org
Fixes: 0fb528c8255b ("iio: adc: adding support for PAC193x")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
