diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2019-11-12 14:40:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-13 00:04:53 +0100 |
commit | af96ce03218eead79f8925e6fe21dd93863affbd (patch) | |
tree | 52297507d127052de6de5da928b73f5b6f4824af /drivers/staging/most | |
parent | e11898460e8908482d0e0a3c0e529ee9455cd376 (diff) | |
download | linux-af96ce03218eead79f8925e6fe21dd93863affbd.tar.bz2 |
staging: most: core: add comments to mutex and spinlock definitions
This patch adds a comment to the start_mutex and fifo_lock fields of
the most_channel structure definition.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1573566036-2279-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r-- | drivers/staging/most/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index f7d2c7850cf5..79e66eb396b8 100644 --- a/drivers/staging/most/core.c +++ b/drivers/staging/most/core.c @@ -52,7 +52,7 @@ struct most_channel { u16 channel_id; char name[STRING_SIZE]; bool is_poisoned; - struct mutex start_mutex; + struct mutex start_mutex; /* channel activation synchronization */ struct mutex nq_mutex; /* nq thread synchronization */ int is_starving; struct most_interface *iface; @@ -60,7 +60,7 @@ struct most_channel { bool keep_mbo; bool enqueue_halt; struct list_head fifo; - spinlock_t fifo_lock; + spinlock_t fifo_lock; /* fifo access synchronization */ struct list_head halt_fifo; struct list_head list; struct pipe pipe0; |