2019-06-11 12:17:47

by Bitan Biswas

[permalink] [raw]
Subject: [PATCH V5 4/7] i2c: tegra: add spinlock definition comment

Fix checkpatch.pl CHECK as follows:
CHECK: spinlock_t definition without comment
+ spinlock_t xfer_lock;

Signed-off-by: Bitan Biswas <[email protected]>
Reviewed-by: Dmitry Osipenko <[email protected]>
---
drivers/i2c/busses/i2c-tegra.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index 2d381de..bececa6 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -269,6 +269,7 @@ struct tegra_i2c_dev {
u32 bus_clk_rate;
u16 clk_divisor_non_hs_mode;
bool is_multimaster_mode;
+ /* xfer_lock: lock to serialize transfer submission and processing */
spinlock_t xfer_lock;
struct dma_chan *tx_dma_chan;
struct dma_chan *rx_dma_chan;
--
2.7.4


2019-06-12 14:34:58

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH V5 4/7] i2c: tegra: add spinlock definition comment

On Tue, Jun 11, 2019 at 03:51:11AM -0700, Bitan Biswas wrote:
> Fix checkpatch.pl CHECK as follows:
> CHECK: spinlock_t definition without comment
> + spinlock_t xfer_lock;
>
> Signed-off-by: Bitan Biswas <[email protected]>
> Reviewed-by: Dmitry Osipenko <[email protected]>

Applied to for-next, thanks!


Attachments:
(No filename) (324.00 B)
signature.asc (849.00 B)
Download all attachments