summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2025-03-31 13:12:42 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-04-22 19:09:58 +0100
commitfef6da136ef2835f18995a45f7b48847cff17b35 (patch)
tree703f34bda3b7f05d0db8827faa4dfb6bf60ca2f7 /tools/perf/scripts/python
parent36ee4794dd791e69f9402d5dc4a52968af36a936 (diff)
downloadlinux-fef6da136ef2835f18995a45f7b48847cff17b35.tar.gz
linux-fef6da136ef2835f18995a45f7b48847cff17b35.zip
iio: chemical: ccs811: Factor out handling of read of IIO_INFO_RAW to simplify error paths.
Factor out the implementation of this part of read_raw() and use guard() to allow direct returns, simplifying both error and non error paths. Reviewed-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com> Link: https://patch.msgid.link/20250331121317.1694135-3-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions