]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83795) Don't pre-read values we'll update later
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Oct 2010 18:31:48 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:48 +0000 (20:31 +0200)
commitb0241a3a8aa3864a64a8dc15c4090212dd554166
treea0ff470ba43eb83aaad460a227bbb3635a275caf
parent19d27fb2acb380e5bf5043f820189e31f62501d9
hwmon: (w83795) Don't pre-read values we'll update later

There is no point in reading registers during initialization if we
will refresh the values in the update function later. This is only
slowing down the driver loading with no benefit, stop doing it.
This change saves 480 ms on driver load on my test system.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83795.c