i2c: busses: Use DEFINE_SPINLOCK() for spinlock
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 28 Dec 2020 13:51:20 +0000 (21:51 +0800)
committerWolfram Sang <wsa@kernel.org>
Tue, 5 Jan 2021 16:43:43 +0000 (17:43 +0100)
commit45c6c873c0ec3fab35aca3ef81b36cd3b1599d98
tree0c66a7333e50d94995a37047b05af8cd0c6ccacb
parent9d64834b2a68b1c969f8c8d845471c0e91191549
i2c: busses: Use DEFINE_SPINLOCK() for spinlock

spinlock can be initialized automatically with DEFINE_SPINLOCK()
rather than explicitly calling spin_lock_init().

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-elektor.c