diff options
author | Paulo Miguel Almeida <[email protected]> | 2022-01-04 12:26:16 +1300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-01-06 15:00:29 +0100 |
commit | 6b2ad1636995895dba74f9c65f4a5cb22fd3f677 (patch) | |
tree | 6e8afa22a4a01ee13b6c13d07d694937ed751dcf | |
parent | 70d8e20c24a4ef42ee200cc7b7b93a01f0ebaa0e (diff) |
staging: pi433: add comment to rx_lock mutex definition
Checkpatch reports: CHECK: struct mutex definition without comment.
Fix this by documenting what rx_mutex struct is used for in pi433
driver.
Signed-off-by: Paulo Miguel Almeida <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/pi433/pi433_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 29bd37669059..68c09fa016ed 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -92,7 +92,7 @@ struct pi433_device { u32 rx_bytes_to_drop; u32 rx_bytes_dropped; unsigned int rx_position; - struct mutex rx_lock; + struct mutex rx_lock; /* protects rx_* variable accesses */ wait_queue_head_t rx_wait_queue; /* fifo wait queue */ |