summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2025-03-09 17:06:32 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-04-22 19:09:56 +0100
commit8d7c205ff9ff8fedd86d704c21f80471f0de7547 (patch)
tree68894551a07d329ef01d1500cb70dcddbfdacc6d /tools/perf/scripts/python/bin
parentabce31c33db6c2c8632214e126fde2e6423279cf (diff)
downloadlinux-8d7c205ff9ff8fedd86d704c21f80471f0de7547.tar.gz
linux-8d7c205ff9ff8fedd86d704c21f80471f0de7547.zip
iio: light: vcnl4000: Switch to sparse friendly iio_device_claim/release_direct()
These new functions allow sparse to find failures to release direct mode reducing chances of bugs over the claim_direct_mode() functions that are deprecated. To simplify the code whilst making the change (and avoid potential false positives from sparse), split the enabling and disabling of thresholds into separate functions. This could have been done in two steps by splitting the functions first, but would have meant rewriting the enable function twice. Cc: Astrid Rost <astrid.rost@axis.com> Tested-by: Per-Daniel Olsson <perdaniel.olsson@axis.com> Reviewed-by: Per-Daniel Olsson <perdaniel.olsson@axis.com> Reviewed-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20250309170633.1347476-18-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions