[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAVeFuJGrD=aoPPnTJBicsDmfExqtHpwORtW8XT0Ji=NYjW8bA@mail.gmail.com>
Date: Mon, 4 Jul 2016 12:39:57 +0900
From: Alexandre Courbot <gnurou@...il.com>
To: Markus Mayer <markus.mayer@...adcom.com>
Cc: Ben Skeggs <bskeggs@...hat.com>, David Airlie <airlied@...ux.ie>,
Alexandre Courbot <acourbot@...dia.com>,
"nouveau@...ts.freedesktop.org" <nouveau@...ts.freedesktop.org>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [Nouveau] [PATCH 2/6] drm/nouveau/core: make use of new
strtolower() function
On Mon, Jul 4, 2016 at 10:37 AM, Alexandre Courbot <gnurou@...il.com> wrote:
> On Sun, Jul 3, 2016 at 12:21 AM, Markus Mayer <markus.mayer@...adcom.com> wrote:
>> On 1 July 2016 at 18:18, Alexandre Courbot <gnurou@...il.com> wrote:
>>> On Fri, Jul 1, 2016 at 8:50 AM, Markus Mayer <mmayer@...adcom.com> wrote:
>>>> Call strtolower() rather than walking the string explicitly to convert
>>>> it to lowercase.
>>>>
>>>> Signed-off-by: Markus Mayer <mmayer@...adcom.com>
>>>> ---
>>>> drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 7 +------
>>>> 1 file changed, 1 insertion(+), 6 deletions(-)
>>>>
>>>> diff --git a/drivers/gpu/drm/nouveau/nvkm/core/firmware.c b/drivers/gpu/drm/nouveau/nvkm/core/firmware.c
>>>> index 34ecd4a..c50594c 100644
>>>> --- a/drivers/gpu/drm/nouveau/nvkm/core/firmware.c
>>>> +++ b/drivers/gpu/drm/nouveau/nvkm/core/firmware.c
>>>> @@ -36,16 +36,11 @@ nvkm_firmware_get(struct nvkm_device *device, const char *fwname,
>>>> {
>>>> char f[64];
>>>> char cname[16];
>>>> - int i;
>>>>
>>>> /* Convert device name to lowercase */
>>>> strncpy(cname, device->chip->name, sizeof(cname));
>>>> cname[sizeof(cname) - 1] = '\0';
>>>> - i = strlen(cname);
>>>> - while (i) {
>>>> - --i;
>>>> - cname[i] = tolower(cname[i]);
>>>> - }
>>>> + strtolower(cname);
>>>
>>> This function doesn't seem to exist as of next-20160701, where have
>>> you found it?
>>
>> I didn't find it. I wrote it, because it didn't exist and I needed it.
>> See: https://lkml.org/lkml/2016/6/30/727 and
>> https://lkml.org/lkml/2016/6/30/733 (cover letter and first patch in
>> series).
>
> Ah, right - would have been easier to understand if you had sent the
> whole series (or at least patches 0 to 2) to us as well. Please do
> that for the next version.
... found patches 0 and 1 in my spam folder, for some weird reason.
Apologies for jumping to conclusions.
Powered by blists - more mailing lists