OpenCloudOS-Kernel/drivers/hwmon
David Brownell 9ebd3d822e hwmon: (lm75) add new-style driver binding
More LM75 updates:

 - Teach the LM75 driver to use new-style driver binding:

     * Create a second driver struct, using new-style driver binding
       methods cribbed from the legacy code.

     * Add a MODULE_DEVICE_TABLE (for "newER-style binding")

     * The legacy probe logic delegates its work to this new code.

     * The legacy driver now uses the name "lm75_legacy".

 - More careful initialization.  Chips are put into 9-bit mode so
   the current interconversion routines will never fail.

 - Save the original chip configuration, and restore it on exit.
   (Among other things, this normally turns off the mode where
   the chip is constantly sampling ... and thus saves power.)

So the new-style code should catch all chips that boards declare,
while the legacy code catches others.  This particular coexistence
strategy may need some work yet ... legacy modes might best be set
up explicitly by some tool not unlike "sensors-detect".  (Or else
completely eradicated...)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
2008-07-31 23:44:02 -04:00
..
ams Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2007-10-12 21:27:47 -04:00
Kconfig hwmon: (lm75) add new-style driver binding 2008-07-31 23:44:02 -04:00
Makefile ibmaem: new driver for power/energy/temp meters in IBM System X hardware 2008-05-24 09:56:08 -07:00
abituguru.c Merge branch 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6 2007-10-14 12:50:19 -07:00
abituguru3.c hwmon: (abituguru3) update driver detection 2008-06-19 06:50:32 -04:00
ad7418.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1021.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1025.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1026.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1029.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1031.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm9240.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
ads7828.c drivers: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:53 -07:00
adt7470.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adt7473.c hwmon: (adt7473) clarify an awkward bit of code 2008-07-31 23:44:02 -04:00
applesmc.c hwmon: (applesmc) sensors set for MacBook2 2008-02-17 15:04:14 -05:00
asb100.c hwmon: (asb100) Remove some dead code 2008-04-27 09:23:12 -04:00
atxp1.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
coretemp.c hwmon: (coretemp) Add Penryn CPU to coretemp 2008-02-17 22:08:37 -05:00
dme1737.c hwmon: (dme1737) fix voltage scaling 2008-07-31 23:44:02 -04:00
ds1621.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
f71805f.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
f71882fg.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
f75375s.c i2c: Convert most new-style drivers to use module aliasing 2008-04-29 23:11:40 +02:00
fscher.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
fschmd.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
fscpos.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
gl518sm.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
gl520sm.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
hdaps.c hdaps: add support for various newer Lenovo thinkpads 2008-07-04 10:40:06 -07:00
hwmon-vid.c x86: convert cpuinfo_x86 array to a per_cpu array 2007-10-19 20:35:04 +02:00
hwmon.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
i5k_amb.c i5k_amb: support Intel 5400 chipset 2008-05-24 09:56:08 -07:00
ibmaem.c ibmaem endianness annotations 2008-06-04 08:06:01 -07:00
ibmpex.c ibmpex: report temperatures in mC, not C 2008-03-19 18:53:36 -07:00
it87.c hwmon: (it87) Delete pwmN_freq files on driver removal 2008-02-07 20:39:43 -05:00
k8temp.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm63.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm70.c hwmon: (lm70) Convert semaphore to mutex 2007-11-08 08:42:46 -05:00
lm75.c hwmon: (lm75) add new-style driver binding 2008-07-31 23:44:02 -04:00
lm75.h hwmon: Allow writing of negative trigger temperatures 2007-10-09 22:56:29 -04:00
lm77.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm78.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm80.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm83.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm85.c hwmon: (lm85) Fix function RANGE_TO_REG() 2008-06-19 06:50:31 -04:00
lm87.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm90.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm92.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm93.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
max1619.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
max6650.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
pc87360.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
pc87427.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
sis5595.c hwmon: (sis5595) Split sis5595_attributes_opt 2007-11-08 08:42:45 -05:00
smsc47b397.c Merge branch 'smsc47b397-new-id' into release 2008-05-01 07:33:17 -04:00
smsc47m1.c hwmon: (smsc47m1) Add individual alarm files 2008-02-17 09:27:18 -05:00
smsc47m192.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
thmc50.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
via686a.c hwmon: (via686a) Add individual alarm files 2008-02-17 09:27:18 -05:00
vt1211.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
vt8231.c hwmon: (vt8231) Update maintainer email address 2008-02-17 09:27:19 -05:00
w83l785ts.c hwmon: (w83l785ts) Don't ask the user to report failures 2008-04-27 09:23:11 -04:00
w83l786ng.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
w83627ehf.c hwmon: (w83627ehf) The W83627DHG has 8 VID pins 2008-02-07 20:39:45 -05:00
w83627hf.c hwmon: (w83627hf) Refactor beep enable handling 2008-02-07 20:39:45 -05:00
w83781d.c hwmon: (w83781d) Fix I/O resource conflict with PNP 2008-03-27 08:40:41 -04:00
w83791d.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
w83792d.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
w83793.c hwmon: (w83793) VID and VRM handling cleanups 2008-04-27 09:23:12 -04:00