[PATCH] drivers/of: Constify device_node->name and ->path_component_name
David Miller
davem at davemloft.net
Thu Nov 15 09:49:38 EST 2012
From: Grant Likely <grant.likely at secretlab.ca>
Date: Wed, 14 Nov 2012 22:42:26 +0000
> On Wed, Nov 14, 2012 at 10:33 PM, David Miller <davem at davemloft.net> wrote:
>>
>> You're making other changes here, such as the kstrdup() stuff,
>> seperate that into another patch.
>
> It's part of the same change. The original code was allocating a
> buffer, saving the pointer in the name field and then modifying it.
> Making the code to a kstrdup() gets rid of modifying the const buffer.
Please mention that in your commit message then, thanks.
More information about the devicetree-discuss
mailing list