hwmon: (w83795) Delay reading pwm config registers
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)
commit1bb3450ce5050bc677c1995a60a0ddfe9e33e7b6
treebb4a0fcaaf4647cb791d1bcc00cde8fc9a52ba3d
parent2ae61de90545fe3dadae8119181c430d89a8627b
hwmon: (w83795) Delay reading pwm config registers

Wait until we need the pwm config register values, instead of
pre-reading them. This saves over 1 second on modprobe on my test
system.

Obviously this time is added when first accessing pwm config
attributes, however not everybody will use them, so it seems unfair
to slow down driver loading (and thus boot) for an optional feature.

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