i2c: i801: replace acpi_lock with I2C bus lock
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 20 Sep 2023 07:33:01 +0000 (09:33 +0200)
committerWolfram Sang <wsa@kernel.org>
Fri, 22 Sep 2023 09:41:58 +0000 (11:41 +0200)
commitf707d6b9e7c18f669adfdb443906d46cfbaaa0c1
tree4e2178fa1fee8204dfb7a3d94d4f268df9fc0a20
parentd0d0f827e067b70c533cca98df772fc65729b522
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>
drivers/i2c/busses/i2c-i801.c