summaryrefslogtreecommitdiff
blob: f9fdc27d74ad5252b9336ba4e6945d33e583f3a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
 usr/src/nv/nv-i2c.c |    4 ++++
 1 file changed, 4 insertions(+)

--- NVIDIA-Linux-x86-1.0-9746-pkg1.orig/usr/src/nv/nv-i2c.c	2006-12-15 19:32:58.000000000 +0100
+++ NVIDIA-Linux-x86-1.0-9746-pkg1/usr/src/nv/nv-i2c.c	2007-01-06 16:50:48.000000000 +0100
@@ -250,6 +250,10 @@ void* NV_API_CALL nv_i2c_add_adapter(nv_
     snprintf(pI2cAdapter->name, I2C_NAME_SIZE,
              "NVIDIA i2c adapter %u at %x:%02x.%u", port, nv->bus,
              nv->slot, PCI_FUNC(nvl->dev->devfn));
+#ifdef I2C_CLASS_HWMON
+    if (port == 2)
+        pI2cAdapter->class = I2C_CLASS_HWMON;
+#endif
 
     // add our data to the structure
     pI2cAdapter->algo_data = (void *)nv;