diff options
author | Binoy Jayan <binoy.jayan@linaro.org> | 2017-06-13 10:58:50 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-24 21:42:34 +0200 |
commit | bd7a85d36363268266c5039bd31495d047acfb98 (patch) | |
tree | 53e91cb8eb3cedb08a3f118620d7e2751d240b24 /drivers/media/pci/ngene/ngene.h | |
parent | media: ngene: Replace semaphore stream_mutex with mutex (diff) | |
download | linux-bd7a85d36363268266c5039bd31495d047acfb98.tar.xz linux-bd7a85d36363268266c5039bd31495d047acfb98.zip |
media: ngene: Replace semaphore i2c_switch_mutex with mutex
The semaphore 'i2c_switch_mutex' is used as a simple mutex, so
it should be written as one. Semaphores are going away in the future.
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 0dd15d61b8ee..7c7cd217333d 100644 --- a/drivers/media/pci/ngene/ngene.h +++ b/drivers/media/pci/ngene/ngene.h @@ -765,7 +765,7 @@ struct ngene { struct mutex cmd_mutex; struct mutex stream_mutex; struct semaphore pll_mutex; - struct semaphore i2c_switch_mutex; + struct mutex i2c_switch_mutex; int i2c_current_channel; int i2c_current_bus; spinlock_t cmd_lock; |