]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: rcar: remove spinlock
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 19 Nov 2015 15:56:44 +0000 (16:56 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Nov 2015 13:20:46 +0000 (14:20 +0100)
commit9b2628ea61edf56a4ec1c636cf61ea13f190eb3d
tree581720408328b6c7d7ddcf75e80d2f0d08b53631
parentbab7a0ccddff3db35286715198059918cc66dae8
i2c: rcar: remove spinlock

After making sure to reinit the HW and clear interrupts in the timeout
case, we know that interrupts are always disabled in the sections
protected by the spinlock. Thus, we can simply remove it which is a
preparation for further refactoring. While here, rename the timeout
variable to time_left which is way more readable.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c