From: Bitan Biswas Date: Tue, 11 Jun 2019 10:51:11 +0000 (-0700) Subject: i2c: tegra: add spinlock definition comment X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9d174476ddc137d3b47b3336f32edaa0ad40e158;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Dmitry Osipenko Signed-off-by: Wolfram Sang --- 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;