i2c: tegra: add spinlock definition comment
authorBitan Biswas <bbiswas@nvidia.com>
Tue, 11 Jun 2019 10:51:11 +0000 (03:51 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 12 Jun 2019 10:20:24 +0000 (12:20 +0200)
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>
drivers/i2c/busses/i2c-tegra.c

index 343b09a109b3a6de0da79785989cd28ab178ed7e..29e12cae55a4280344bc95141fbf545e86e57efb 100644 (file)
@@ -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;