diff options
author | Bitan Biswas <bbiswas@nvidia.com> | 2019-06-11 03:51:11 -0700 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-06-12 12:20:24 +0200 |
commit | 9d174476ddc137d3b47b3336f32edaa0ad40e158 (patch) | |
tree | 554b9f27150fb8872f96a06009cbf3360523f6ca /drivers/i2c | |
parent | 26955a7bbfca698b024e1ff750b2d8e3d3f74118 (diff) | |
download | linux-9d174476ddc137d3b47b3336f32edaa0ad40e158.tar.gz linux-9d174476ddc137d3b47b3336f32edaa0ad40e158.tar.bz2 linux-9d174476ddc137d3b47b3336f32edaa0ad40e158.zip |
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 <bbiswas@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 343b09a109b3..29e12cae55a4 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; |