android_kernel_xiaomi_sm8350/drivers/hwmon
Jean Delvare 7f999aa726 hwmon: Simplify the locking model of two drivers
Many hardware monitoring drivers use two different mutexes, one to
protect their per-device data structure, and one to protect the
access to the device registers. These mutexes are essentially
redundant, as the drivers are transfering values between the device
registers and the data cache, so they almost always end up holding
both mutexes at the same time. Using a single mutex will make the
code more simple and faster.

I am changing only two of the affected drivers here, the authors
of the other affected drivers are welcome to submit similar patches
if they want.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
2007-02-14 21:15:03 +01:00
..
ams [PATCH] hwmon: ansify 2007-02-09 09:14:06 -08:00
abituguru.c
adm1021.c
adm1025.c
adm1026.c hwmon: Drop unused mutexes in two drivers 2007-02-14 21:15:03 +01:00
adm1031.c
adm9240.c
asb100.c
atxp1.c
ds1621.c
f71805f.c hwmon: Simplify the locking model of two drivers 2007-02-14 21:15:03 +01:00
fscher.c
fscpos.c
gl518sm.c
gl520sm.c
hdaps.c hwmon/hdaps: Update the list of supported devices 2006-12-12 18:18:28 +01:00
hwmon-vid.c hwmon: Fix the VRD 11 decoding 2007-01-18 22:14:23 +01:00
hwmon.c
it87.c hwmon: Simplify the locking model of two drivers 2007-02-14 21:15:03 +01:00
k8temp.c hwmon: Update Rudolf Marek's e-mail address 2006-12-12 18:18:30 +01:00
Kconfig hwmon: New AMS hardware monitoring driver 2006-12-12 18:18:30 +01:00
lm63.c
lm70.c
lm75.c
lm75.h
lm77.c
lm78.c
lm80.c
lm83.c
lm85.c hwmon: Drop unused mutexes in two drivers 2007-02-14 21:15:03 +01:00
lm87.c
lm90.c
lm92.c
Makefile hwmon: New AMS hardware monitoring driver 2006-12-12 18:18:30 +01:00
max1619.c
pc87360.c hwmon/pc87360: Autodetect the VRM version 2006-12-12 18:18:28 +01:00
pc87427.c hwmon: New PC87427 hardware monitoring driver 2006-12-12 18:18:29 +01:00
sis5595.c
smsc47b397.c
smsc47m1.c
smsc47m192.c
via686a.c
vt1211.c
vt8231.c i2c/vt8231: Remove superfluous initialization 2007-02-13 22:08:58 +01:00
w83l785ts.c
w83627ehf.c hwmon: Update Rudolf Marek's e-mail address 2006-12-12 18:18:30 +01:00
w83627hf.c
w83781d.c
w83791d.c
w83792d.c hwmon: Update Rudolf Marek's e-mail address 2006-12-12 18:18:30 +01:00
w83793.c hwmon/w83793: Hide invalid VID readings 2007-01-18 22:14:24 +01:00