Commit f707d6b
i2c: i801: replace acpi_lock with I2C bus lock
I2C core ensures in i2c_smbus_xfer() that the I2C bus lock is held when
calling the smbus_xfer callback. That's i801_access() in our case.
I think it's safe in general to assume that the I2C bus lock is held
when the smbus_xfer callback is called.
Therefore I see no need to define an own mutex.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>1 parent d0d0f82 commit f707d6b
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
| |||
874 | 873 | | |
875 | 874 | | |
876 | 875 | | |
877 | | - | |
878 | | - | |
879 | | - | |
| 876 | + | |
880 | 877 | | |
881 | | - | |
882 | 878 | | |
883 | 879 | | |
884 | 880 | | |
| |||
919 | 915 | | |
920 | 916 | | |
921 | 917 | | |
922 | | - | |
923 | 918 | | |
924 | 919 | | |
925 | 920 | | |
| |||
1571 | 1566 | | |
1572 | 1567 | | |
1573 | 1568 | | |
1574 | | - | |
| 1569 | + | |
1575 | 1570 | | |
1576 | 1571 | | |
1577 | 1572 | | |
| |||
1591 | 1586 | | |
1592 | 1587 | | |
1593 | 1588 | | |
1594 | | - | |
| 1589 | + | |
1595 | 1590 | | |
1596 | 1591 | | |
1597 | 1592 | | |
| |||
1651 | 1646 | | |
1652 | 1647 | | |
1653 | 1648 | | |
1654 | | - | |
1655 | 1649 | | |
1656 | 1650 | | |
1657 | 1651 | | |
| |||
0 commit comments