]> git.karo-electronics.de Git - linux-beck.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)
commitff2316b87a336bff940939cd9fc56287ed48e578
tree581720408328b6c7d7ddcf75e80d2f0d08b53631
parent90f779e565bdc18dd4f79d81cf11f43a7266010b
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