aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ngene/ngene.h
diff options
context:
space:
mode:
authorBinoy Jayan <binoy.jayan@linaro.org>2017-06-13 05:58:49 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-24 16:42:00 -0300
commit90979f045513e7d3d7fb390dc26117ce95a31804 (patch)
tree473a7b7569ee8b199a86b7e687e7f73e4c1b6da4 /drivers/media/pci/ngene/ngene.h
parentmedia: ngene: Replace semaphore cmd_mutex with mutex (diff)
downloadlinux-dev-90979f045513e7d3d7fb390dc26117ce95a31804.tar.xz
linux-dev-90979f045513e7d3d7fb390dc26117ce95a31804.zip
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.h2
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;