]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: ngene: Replace semaphore stream_mutex with mutex
authorBinoy Jayan <binoy.jayan@linaro.org>
Tue, 13 Jun 2017 08:58:49 +0000 (05:58 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 24 Jun 2017 19:42:00 +0000 (16:42 -0300)
commit90979f045513e7d3d7fb390dc26117ce95a31804
tree473a7b7569ee8b199a86b7e687e7f73e4c1b6da4
parent1439cdb0315cc3f1e86cf70de22c4a90c5ac48b1
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>
drivers/media/pci/ngene/ngene-core.c
drivers/media/pci/ngene/ngene.h