diff options
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c index e93b2410c38b..ddb2b2c600ca 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c | |||
@@ -83,7 +83,7 @@ nvkm_therm_sensor_event(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, | |||
83 | { | 83 | { |
84 | struct nvkm_subdev *subdev = &therm->subdev; | 84 | struct nvkm_subdev *subdev = &therm->subdev; |
85 | bool active; | 85 | bool active; |
86 | const char *thresolds[] = { | 86 | static const char * const thresholds[] = { |
87 | "fanboost", "downclock", "critical", "shutdown" | 87 | "fanboost", "downclock", "critical", "shutdown" |
88 | }; | 88 | }; |
89 | int temperature = therm->func->temp_get(therm); | 89 | int temperature = therm->func->temp_get(therm); |
@@ -94,10 +94,10 @@ nvkm_therm_sensor_event(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, | |||
94 | if (dir == NVKM_THERM_THRS_FALLING) | 94 | if (dir == NVKM_THERM_THRS_FALLING) |
95 | nvkm_info(subdev, | 95 | nvkm_info(subdev, |
96 | "temperature (%i C) went below the '%s' threshold\n", | 96 | "temperature (%i C) went below the '%s' threshold\n", |
97 | temperature, thresolds[thrs]); | 97 | temperature, thresholds[thrs]); |
98 | else | 98 | else |
99 | nvkm_info(subdev, "temperature (%i C) hit the '%s' threshold\n", | 99 | nvkm_info(subdev, "temperature (%i C) hit the '%s' threshold\n", |
100 | temperature, thresolds[thrs]); | 100 | temperature, thresholds[thrs]); |
101 | 101 | ||
102 | active = (dir == NVKM_THERM_THRS_RISING); | 102 | active = (dir == NVKM_THERM_THRS_RISING); |
103 | switch (thrs) { | 103 | switch (thrs) { |