diff options
4 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/therm.h b/drivers/gpu/drm/nouveau/core/include/subdev/therm.h index 6b17b614629f..0b20fc0d19c1 100644 --- a/drivers/gpu/drm/nouveau/core/include/subdev/therm.h +++ b/drivers/gpu/drm/nouveau/core/include/subdev/therm.h | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | #include <core/device.h> | 4 | #include <core/device.h> |
| 5 | #include <core/subdev.h> | 5 | #include <core/subdev.h> |
| 6 | 6 | ||
| 7 | enum nouveau_therm_mode { | 7 | enum nouveau_therm_fan_mode { |
| 8 | NOUVEAU_THERM_CTRL_NONE = 0, | 8 | NOUVEAU_THERM_CTRL_NONE = 0, |
| 9 | NOUVEAU_THERM_CTRL_MANUAL = 1, | 9 | NOUVEAU_THERM_CTRL_MANUAL = 1, |
| 10 | NOUVEAU_THERM_CTRL_AUTO = 2, | 10 | NOUVEAU_THERM_CTRL_AUTO = 2, |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/base.c b/drivers/gpu/drm/nouveau/core/subdev/therm/base.c index f794dc89a3b2..321a55bc25a7 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/base.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/base.c | |||
| @@ -134,7 +134,7 @@ nouveau_therm_alarm(struct nouveau_alarm *alarm) | |||
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | int | 136 | int |
| 137 | nouveau_therm_mode(struct nouveau_therm *therm, int mode) | 137 | nouveau_therm_fan_mode(struct nouveau_therm *therm, int mode) |
| 138 | { | 138 | { |
| 139 | struct nouveau_therm_priv *priv = (void *)therm; | 139 | struct nouveau_therm_priv *priv = (void *)therm; |
| 140 | struct nouveau_device *device = nv_device(therm); | 140 | struct nouveau_device *device = nv_device(therm); |
| @@ -152,7 +152,7 @@ nouveau_therm_mode(struct nouveau_therm *therm, int mode) | |||
| 152 | if (priv->mode == mode) | 152 | if (priv->mode == mode) |
| 153 | return 0; | 153 | return 0; |
| 154 | 154 | ||
| 155 | nv_info(therm, "Thermal management: %s\n", name[mode]); | 155 | nv_info(therm, "fan management: %s\n", name[mode]); |
| 156 | nouveau_therm_update(therm, mode); | 156 | nouveau_therm_update(therm, mode); |
| 157 | return 0; | 157 | return 0; |
| 158 | } | 158 | } |
| @@ -213,7 +213,7 @@ nouveau_therm_attr_set(struct nouveau_therm *therm, | |||
| 213 | priv->fan->bios.max_duty = value; | 213 | priv->fan->bios.max_duty = value; |
| 214 | return 0; | 214 | return 0; |
| 215 | case NOUVEAU_THERM_ATTR_FAN_MODE: | 215 | case NOUVEAU_THERM_ATTR_FAN_MODE: |
| 216 | return nouveau_therm_mode(therm, value); | 216 | return nouveau_therm_fan_mode(therm, value); |
| 217 | case NOUVEAU_THERM_ATTR_THRS_FAN_BOOST: | 217 | case NOUVEAU_THERM_ATTR_THRS_FAN_BOOST: |
| 218 | priv->bios_sensor.thrs_fan_boost.temp = value; | 218 | priv->bios_sensor.thrs_fan_boost.temp = value; |
| 219 | priv->sensor.program_alarms(therm); | 219 | priv->sensor.program_alarms(therm); |
| @@ -263,7 +263,7 @@ _nouveau_therm_init(struct nouveau_object *object) | |||
| 263 | return ret; | 263 | return ret; |
| 264 | 264 | ||
| 265 | if (priv->suspend >= 0) | 265 | if (priv->suspend >= 0) |
| 266 | nouveau_therm_mode(therm, priv->mode); | 266 | nouveau_therm_fan_mode(therm, priv->mode); |
| 267 | priv->sensor.program_alarms(therm); | 267 | priv->sensor.program_alarms(therm); |
| 268 | return 0; | 268 | return 0; |
| 269 | } | 269 | } |
| @@ -317,7 +317,7 @@ nouveau_therm_preinit(struct nouveau_therm *therm) | |||
| 317 | nouveau_therm_sensor_ctor(therm); | 317 | nouveau_therm_sensor_ctor(therm); |
| 318 | nouveau_therm_fan_ctor(therm); | 318 | nouveau_therm_fan_ctor(therm); |
| 319 | 319 | ||
| 320 | nouveau_therm_mode(therm, NOUVEAU_THERM_CTRL_NONE); | 320 | nouveau_therm_fan_mode(therm, NOUVEAU_THERM_CTRL_NONE); |
| 321 | return 0; | 321 | return 0; |
| 322 | } | 322 | } |
| 323 | 323 | ||
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/priv.h b/drivers/gpu/drm/nouveau/core/subdev/therm/priv.h index 06b98706b3fc..d8483dd5e0f9 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/priv.h +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/priv.h | |||
| @@ -102,7 +102,7 @@ struct nouveau_therm_priv { | |||
| 102 | struct i2c_client *ic; | 102 | struct i2c_client *ic; |
| 103 | }; | 103 | }; |
| 104 | 104 | ||
| 105 | int nouveau_therm_mode(struct nouveau_therm *therm, int mode); | 105 | int nouveau_therm_fan_mode(struct nouveau_therm *therm, int mode); |
| 106 | int nouveau_therm_attr_get(struct nouveau_therm *therm, | 106 | int nouveau_therm_attr_get(struct nouveau_therm *therm, |
| 107 | enum nouveau_therm_attr_type type); | 107 | enum nouveau_therm_attr_type type); |
| 108 | int nouveau_therm_attr_set(struct nouveau_therm *therm, | 108 | int nouveau_therm_attr_set(struct nouveau_therm *therm, |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c b/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c index 0a17b9588e09..441f60bba226 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c | |||
| @@ -123,7 +123,7 @@ void nouveau_therm_sensor_event(struct nouveau_therm *therm, | |||
| 123 | case NOUVEAU_THERM_THRS_FANBOOST: | 123 | case NOUVEAU_THERM_THRS_FANBOOST: |
| 124 | if (active) { | 124 | if (active) { |
| 125 | nouveau_therm_fan_set(therm, true, 100); | 125 | nouveau_therm_fan_set(therm, true, 100); |
| 126 | nouveau_therm_mode(therm, NOUVEAU_THERM_CTRL_AUTO); | 126 | nouveau_therm_fan_mode(therm, NOUVEAU_THERM_CTRL_AUTO); |
| 127 | } | 127 | } |
| 128 | break; | 128 | break; |
| 129 | case NOUVEAU_THERM_THRS_DOWNCLOCK: | 129 | case NOUVEAU_THERM_THRS_DOWNCLOCK: |
