diff options
author | Binoy Jayan <binoy.jayan@linaro.org> | 2017-06-13 11:58:49 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-24 22:42:00 +0300 |
commit | 90979f045513e7d3d7fb390dc26117ce95a31804 (patch) | |
tree | 473a7b7569ee8b199a86b7e687e7f73e4c1b6da4 /drivers/media/pci/ngene/ngene.h | |
parent | 1439cdb0315cc3f1e86cf70de22c4a90c5ac48b1 (diff) | |
download | linux-90979f045513e7d3d7fb390dc26117ce95a31804.tar.xz |
media: ngene: Replace semaphore stream_mutex with mutex
The semaphore 'stream_mutex' is used as a simple mutex, so
it should be written as one. Also moving the mutex_[lock/unlock]
to the caller as it is anyway locked at the beginning of the
callee thus avoiding repetition.
Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/ngene/ngene.h')
-rw-r--r-- | drivers/media/pci/ngene/ngene.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ngene/ngene.h b/drivers/media/pci/ngene/ngene.h index e600b70415da..0dd15d61b8ee 100644 --- a/drivers/media/pci/ngene/ngene.h +++ b/drivers/media/pci/ngene/ngene.h @@ -763,7 +763,7 @@ struct ngene { wait_queue_head_t cmd_wq; int cmd_done; struct mutex cmd_mutex; - struct semaphore stream_mutex; + struct mutex stream_mutex; struct semaphore pll_mutex; struct semaphore i2c_switch_mutex; int i2c_current_channel; |