i2c: i801: make p2sb_spinlock a mutex
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 6 Aug 2021 21:13:29 +0000 (23:13 +0200)
committerWolfram Sang <wsa@kernel.org>
Tue, 10 Aug 2021 20:36:27 +0000 (22:36 +0200)
commit1a987c69ce2c5a406f7ef3713d3ed74a1af70c56
tree480a425769dd3fabf1d8f55534f574c3096a96aa
parent4e60d5dd10cd82014b26a40519b94444547ec95c
i2c: i801: make p2sb_spinlock a mutex

p2sb_spinlock is used in i801_add_tco_spt() only, and in process context
only. Therefore a mutex is sufficient, and we can make the definition
local to i801_add_tco_spt().

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-i801.c