]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88ebce83ad15fb8f8f4a17aa2805d1cb584800c4
treebb4a0fcaaf4647cb791d1bcc00cde8fc9a52ba3d
parent0891bd32e703eb70e88e29e82e674769b9cc3532
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