hwmon: (it87) Add calls to smbus_enable/smbus_disable as required
authorFrank Crawford <frank@crawford.emu.id.au>
Sun, 16 Apr 2023 04:25:09 +0000 (14:25 +1000)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 21 Apr 2023 14:27:23 +0000 (07:27 -0700)
commit376e1a937b3056802f3ad86811ec92ee3f49d560
treedbfdc805f5b055e32e76c8d7c95c0bcb03cb3513
parent0282ba4a4fe6c8e6c0ffecfcdf214fa7f6452dc4
hwmon: (it87) Add calls to smbus_enable/smbus_disable as required

Disable/re-enable access through SMBus for chip registers when they are
are being read or written.

For simple cases this is done at the same time as when a mutex is set,
however, within loops or during initialisation it is done separately.

Signed-off-by: Frank Crawford <frank@crawford.emu.id.au>
[groeck: Fixed multi-line alignment]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c