OSDN Git Service

staging: iio: tsl2x7x: convert mutex_trylock() to mutex_lock()
authorBrian Masney <masneyb@onstation.org>
Sun, 4 Mar 2018 01:49:35 +0000 (20:49 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 10 Mar 2018 14:39:00 +0000 (14:39 +0000)
commita0722d05a19542616a42b6239165d7ac9c542057
treef777af8b4f7e40ab393d6040ef5ea1a64a8afab3
parentf5d9bca666078871f27eef6b18e507498840eb70
staging: iio: tsl2x7x: convert mutex_trylock() to mutex_lock()

The driver uses mutex_lock() and mutex_trylock() in several places.
Convert the mutex_trylock() to mutex_lock() for consistency with other
IIO light drivers in mainline.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c