aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2004-05-10 23:46:12 -0700
committerDeepak Saxena <dsaxena@plexity.net>2004-05-10 23:46:12 -0700
commit0c8a2f9d08b1b6def97cfa6cdf47ac6d8507c0a6 (patch)
tree040d683e526a5f510101a3f329254a431297f1f6 /Documentation
parentebd5b5d9beecda589b770efac6bcc72ab792ac61 (diff)
downloadhistory-0c8a2f9d08b1b6def97cfa6cdf47ac6d8507c0a6.tar.gz
[PATCH] I2C: Rename hardware monitoring I2C class
Quoting myself: > Mmm, I once proposed that I2C_ADAP_CLASS_SMBUS would be better renamed > I2C_ADAP_CLASS_SENSORS (so I2C_CLASS_SENSORS now). What about that? I > think it would be great to embed that change into your patch, so that > the name changes only once. > > BTW, if HWMON is prefered to SENSORS, this is fine with me too, I > have no strong preference. Below is a patch that does that. I finally went for HWMON. Yes, it's big, but it's actually nothing more than s/I2C_CLASS_SMBUS/I2C_CLASS_HWMON/ (thanks perl -wip :)).
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/i2c/porting-clients4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/i2c/porting-clients b/Documentation/i2c/porting-clients
index 5ff3226e8e4bf5..18b9acef0def14 100644
--- a/Documentation/i2c/porting-clients
+++ b/Documentation/i2c/porting-clients
@@ -62,9 +62,9 @@ Technical changes:
patch to the Documentation/i2c/sysfs-interface file.
* [Attach] For I2C drivers, the attach function should make sure
- that the adapter's class has I2C_CLASS_SMBUS, using the
+ that the adapter's class has I2C_CLASS_HWMON, using the
following construct:
- if (!(adapter->class & I2C_CLASS_SMBUS))
+ if (!(adapter->class & I2C_CLASS_HWMON))
return 0;
ISA-only drivers of course don't need this.