diff options
| author | Riyan Dhiman <riyandhiman14@gmail.com> | 2024-07-27 15:01:06 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-30 09:20:50 +0200 |
| commit | f67a5f76a67c0c8039254a527c432e80822b2f8a (patch) | |
| tree | 1cf589925306a7217c3534dfdcb105295d9f8ebb /drivers/staging/fbtft | |
| parent | ed50113fa24125929a6811f34528e8e34249ce3c (diff) | |
| download | linux-f67a5f76a67c0c8039254a527c432e80822b2f8a.tar.gz linux-f67a5f76a67c0c8039254a527c432e80822b2f8a.tar.bz2 linux-f67a5f76a67c0c8039254a527c432e80822b2f8a.zip | |
staging: fbtft: Fix mutex and spinlock without comment warning
Adhere to Linux kernel coding style
Reported by checkpatch:
CHECK: spinlock_t definition without comment
CHECK: mutex definition without comment
Signed-off-by: Riyan Dhiman <riyandhiman14@gmail.com>
Link: https://lore.kernel.org/r/20240727093106.11214-1-riyandhiman14@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft')
| -rw-r--r-- | drivers/staging/fbtft/fbtft.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h index f86ed9d470b8..3e00a26a29d5 100644 --- a/drivers/staging/fbtft/fbtft.h +++ b/drivers/staging/fbtft/fbtft.h @@ -202,6 +202,7 @@ struct fbtft_par { u8 *buf; u8 startbyte; struct fbtft_ops fbtftops; + /* Spinlock to ensure thread-safe access to dirty_lines_start and dirty_lines_end */ spinlock_t dirty_lock; unsigned int dirty_lines_start; unsigned int dirty_lines_end; @@ -218,6 +219,7 @@ struct fbtft_par { } gpio; const s16 *init_sequence; struct { + /* Mutex to synchronize access to gamma curve locking */ struct mutex lock; u32 *curves; int num_values; |
