]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (lm75) Per-chip configuration register initialization
authorJean Delvare <khali@linux-fr.org>
Mon, 18 Mar 2013 22:57:25 +0000 (09:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Mar 2013 22:57:25 +0000 (09:57 +1100)
commit8163b265f156abdd5dd5a5becbe42b3f32334841
treee44338024331be21cd01d2bc5e3fa22287a754ed
parentb97614ec6a0d0ec5c180b982de5d3aea4b12c358
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