drm/nouveau/hwmon: s/fan0/fan1/
authorBen Skeggs <bskeggs@redhat.com>
Thu, 6 Dec 2012 05:13:06 +0000 (15:13 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:25 +0000 (16:00 +1000)
Fan speed info now shown by sensors.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Documentation/thermal/nouveau_thermal
drivers/gpu/drm/nouveau/nouveau_pm.c

index ec854fd32057e18a35bdd3ee6f00d7a427d7fb79..efceb7828f54106464f40d74c0e1584a76034230 100644 (file)
@@ -58,7 +58,7 @@ attributes should be available:
 
 You may also have the following attribute:
 
- * fan0_input: Speed in RPM of your fan.
+ * fan1_input: Speed in RPM of your fan.
 
 Your fan can be driven in different modes:
 
index d456e102682b599e997c582d8ca71b43a002028e..3a6ee7e48753b33c4f8096126ede0e6e8a9b2b8b 100644 (file)
@@ -698,7 +698,7 @@ static SENSOR_DEVICE_ATTR(update_rate, S_IRUGO,
                                                NULL, 0);
 
 static ssize_t
-nouveau_hwmon_show_fan0_input(struct device *d, struct device_attribute *attr,
+nouveau_hwmon_show_fan1_input(struct device *d, struct device_attribute *attr,
                              char *buf)
 {
        struct drm_device *dev = dev_get_drvdata(d);
@@ -707,7 +707,7 @@ nouveau_hwmon_show_fan0_input(struct device *d, struct device_attribute *attr,
 
        return snprintf(buf, PAGE_SIZE, "%d\n", therm->fan_sense(therm));
 }
-static SENSOR_DEVICE_ATTR(fan0_input, S_IRUGO, nouveau_hwmon_show_fan0_input,
+static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, nouveau_hwmon_show_fan1_input,
                          NULL, 0);
 
  static ssize_t
@@ -887,7 +887,7 @@ static struct attribute *hwmon_attributes[] = {
        NULL
 };
 static struct attribute *hwmon_fan_rpm_attributes[] = {
-       &sensor_dev_attr_fan0_input.dev_attr.attr,
+       &sensor_dev_attr_fan1_input.dev_attr.attr,
        NULL
 };
 static struct attribute *hwmon_pwm_fan_attributes[] = {