Commit 4a84a6fd authored by Colin Ian King's avatar Colin Ian King Committed by Ben Skeggs

drm/nouveau/therm: fix spelling mistake on array thresolds

Array thresolds should be named thresholds, rename it. Also make it static
static const char * const
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarMartin Peres <martin.peres@free.fr>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 6b9dfb59
...@@ -83,7 +83,7 @@ nvkm_therm_sensor_event(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs, ...@@ -83,7 +83,7 @@ nvkm_therm_sensor_event(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs,
{ {
struct nvkm_subdev *subdev = &therm->subdev; struct nvkm_subdev *subdev = &therm->subdev;
bool active; bool active;
const char *thresolds[] = { static const char * const thresholds[] = {
"fanboost", "downclock", "critical", "shutdown" "fanboost", "downclock", "critical", "shutdown"
}; };
int temperature = therm->func->temp_get(therm); 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,10 +94,10 @@ nvkm_therm_sensor_event(struct nvkm_therm *therm, enum nvkm_therm_thrs thrs,
if (dir == NVKM_THERM_THRS_FALLING) if (dir == NVKM_THERM_THRS_FALLING)
nvkm_info(subdev, nvkm_info(subdev,
"temperature (%i C) went below the '%s' threshold\n", "temperature (%i C) went below the '%s' threshold\n",
temperature, thresolds[thrs]); temperature, thresholds[thrs]);
else else
nvkm_info(subdev, "temperature (%i C) hit the '%s' threshold\n", nvkm_info(subdev, "temperature (%i C) hit the '%s' threshold\n",
temperature, thresolds[thrs]); temperature, thresholds[thrs]);
active = (dir == NVKM_THERM_THRS_RISING); active = (dir == NVKM_THERM_THRS_RISING);
switch (thrs) { switch (thrs) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment