]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
hwmon: (dme1737) Be less i2c-centric
authorJean Delvare <khali@linux-fr.org>
Tue, 14 Oct 2008 15:30:04 +0000 (17:30 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Tue, 14 Oct 2008 15:30:04 +0000 (17:30 +0200)
commitdbc2bc251e06c83efcc8d39f1e7de12c2b1ff591
treedda7cb6d3a0aefdee1e74bbe98613b24dbe9804d
parentb84ee0b0c7dc91b729672e6a971fe3b0629ef0ad
hwmon: (dme1737) Be less i2c-centric

The dme1737 driver support both LPC (ISA) and SMBus devices. At the
moment it's rather i2c-centric, and LPC variants use a fake i2c_client
for some operations.

In a near future, i2c_client will be allocated by i2c-core rather than
by the device drivers, so non-i2c drivers will not have one. As a
preparation step, change the driver code to no longer assume that
an i2c_client structure is always available. No functional change.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Juerg Haefliger <juergh@gmail.com>
drivers/hwmon/dme1737.c