]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
hwmon: (w83793) VID and VRM handling cleanups
authorJean Delvare <khali@linux-fr.org>
Tue, 12 Feb 2008 10:25:07 +0000 (11:25 +0100)
committerMark M. Hoffman <mhoffman@lightlink.com>
Sun, 27 Apr 2008 13:23:12 +0000 (09:23 -0400)
commit93c75a4ac2d95834e7202965d853d3cd23aadb40
tree6f80254db8035f627d1e4a998a748f70a9a8ab4f
parent4040c415f5566ecfe95b509ee84d68fb7050b30c
hwmon: (w83793) VID and VRM handling cleanups

* Rework the device initialization function so as to read the
"Multi-Function Pin Control" register (0x58) once instead of twice.
I2C transactions aren't cheap so this speeds up the driver loading.

* Only create the "vrm" attribute if at least one VID value is
available.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Gong Jun <jgong@winbond.com>
Acked-by: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/w83793.c