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: Colin Ian King <colin.king@canonical.com> Reviewed-by: Martin Peres <martin.peres@free.fr> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
6b9dfb5991
commit
4a84a6fd9a
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
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) {
|
||||||
|
|
Loading…
Reference in a new issue