diff options
| author | Brian Masney <masneyb@onstation.org> | 2016-10-28 13:00:21 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2016-11-01 21:50:09 +0300 |
| commit | 1b7e9e2cbd6478e0ebe40639ea36fefd3ffcf916 (patch) | |
| tree | ee178b261cadee71342032c9fb5f5fd0269b9a6a /include | |
| parent | f375a49f710535b0ac2923274e2a33f04e02514d (diff) | |
| download | linux-1b7e9e2cbd6478e0ebe40639ea36fefd3ffcf916.tar.xz | |
staging: iio: tsl2583: add locking to sysfs attributes
in_illuminance_input_target_show(), in_illuminance_input_target_store(),
in_illuminance_calibrate_store(), and in_illuminance_lux_table_store()
accesses data from the tsl2583_chip struct. Some of these fields can be
modified by other parts of the driver concurrently. This patch adds the
mutex locking to these sysfs attributes.
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
