diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2018-11-11 17:15:28 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-11-16 21:32:32 +0300 |
commit | 739aff87a8176c1193cc46ebce5ce6dd537501af (patch) | |
tree | 8c2506520b9a5c22192518e993df620a38ddf31a /include/target | |
parent | 750ac07eb2c85617b5522402a99b4b408cd0b1b3 (diff) | |
download | linux-739aff87a8176c1193cc46ebce5ce6dd537501af.tar.xz |
iio: imu: st_lsm6dsx: introduce locked read/write utility routines
Add st_lsm6dsx_update_bits_locked, st_lsm6dsx_read_locked and
st_lsm6dsx_write_locked utility routines in order to guarantee
the bus access is atomic respect to reg page configuration.
This is a preliminary patch to add i2c sensor hub support since
i2c master registers are accessed through a reg page multiplexer
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions