Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752704AbdF0KIH (ORCPT ); Tue, 27 Jun 2017 06:08:07 -0400 Received: from smtp5-g21.free.fr ([212.27.42.5]:58817 "EHLO smtp5-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752142AbdF0KIA (ORCPT ); Tue, 27 Jun 2017 06:08:00 -0400 Subject: Re: [Nouveau] [PATCH] drm/nouveau/therm: fix spelling mistake on array thresolds To: Colin King , Ben Skeggs , David Airlie , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org References: <20170627080858.12218-1-colin.king@canonical.com> From: Martin Peres Message-ID: Date: Tue, 27 Jun 2017 13:07:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170627080858.12218-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1635 Lines: 43 On 27/06/17 11:08, Colin King wrote: > From: Colin Ian King > > Array thresolds should be named thresholds, rename it. Also make it static > static const char * const > > Signed-off-by: Colin Ian King Thanks for doing this, Reviewed-by: Martin Peres > --- > drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c | 6 +++--- > 1 file 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..6449771b9dc6 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, > { > struct nvkm_subdev *subdev = &therm->subdev; > bool active; > - const char *thresolds[] = { > + static const char * const thresholds[] = { > "fanboost", "downclock", "critical", "shutdown" > }; > 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) > nvkm_info(subdev, > "temperature (%i C) went below the '%s' threshold\n", > - temperature, thresolds[thrs]); > + temperature, thresholds[thrs]); > else > nvkm_info(subdev, "temperature (%i C) hit the '%s' threshold\n", > - temperature, thresolds[thrs]); > + temperature, thresholds[thrs]); > > active = (dir == NVKM_THERM_THRS_RISING); > switch (thrs) { >