diff options
| author | Brian Masney <masneyb@onstation.org> | 2017-07-06 18:56:23 -0400 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-07-09 18:29:25 +0100 |
| commit | be78f70ce0d11aa5767a859e1abdc522c1748c44 (patch) | |
| tree | 7ffe8207c068592551aa250c2d4c5a9d2c2cf954 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 1b4cbe2ef00e5d055bb310030ed3eac9bc1d3e3d (diff) | |
| download | cachepc-linux-be78f70ce0d11aa5767a859e1abdc522c1748c44.tar.gz cachepc-linux-be78f70ce0d11aa5767a859e1abdc522c1748c44.zip | |
staging: iio: tsl2x7x: refactor {read,write}_event_value to allow handling multiple iio_event_infos
tsl2x7x_read_thresh() and tsl2x7x_write_thresh() currently assumes
that IIO_EV_INFO_VALUE is the only iio_event_info that will be
passed in. This patch refactors these two functions so that
additional iio_event_infos can be passed in. The functions are
renamed from tsl2x7x_{read,write}_thresh() to
tsl2x7x_{read,write}_event_value(). This patch also adds the
missing return value check to tsl2x7x_invoke_change() since this
was previously missing. This patch is in preparation for moving
the in_intensity0_thresh_period and in_proximity0_thresh_period sysfs
attributes to be created by iio_event_spec.
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
