hwmon: (lm75) Per-chip configuration register initialization
authorJean Delvare <khali@linux-fr.org>
Sat, 4 May 2013 12:49:36 +0000 (14:49 +0200)
committerJean Delvare <khali@endymion.delvare>
Sat, 4 May 2013 12:49:36 +0000 (14:49 +0200)
commit8a5c5cc61748642a1276ef94611e21a60f0796ab
tree7f94d4ed22b4e43489a4a1f4183cce724e081be9
parent1db772216f48978d5146b858586f6178433aad38
hwmon: (lm75) Per-chip configuration register initialization

There is no standard for the configuration register bits of LM75-like
chips. We shouldn't blindly clear bits setting the resolution as they
are either unused or used for something else on some of the supported
chips.

So, switch to per-chip configuration initialization. This will allow
for better tuning later, for example using more resolution bits when
available.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm75.c