summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/cdc
diff options
context:
space:
mode:
authorBrian Masney2016-10-28 12:00:21 +0200
committerJonathan Cameron2016-11-01 19:50:09 +0100
commit1b7e9e2cbd6478e0ebe40639ea36fefd3ffcf916 (patch)
treeee178b261cadee71342032c9fb5f5fd0269b9a6a /drivers/staging/iio/cdc
parentstaging: iio: tsl2583: add error code to sysfs store functions (diff)
downloadkernel-qcow2-linux-1b7e9e2cbd6478e0ebe40639ea36fefd3ffcf916.tar.gz
kernel-qcow2-linux-1b7e9e2cbd6478e0ebe40639ea36fefd3ffcf916.tar.xz
kernel-qcow2-linux-1b7e9e2cbd6478e0ebe40639ea36fefd3ffcf916.zip
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 'drivers/staging/iio/cdc')
0 files changed, 0 insertions, 0 deletions