RE: [PATCH net-next v2 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support

From: Min Li
Date: Thu Apr 08 2021 - 13:36:18 EST


>
> Why?
>

Because I need to manipulate name by adding the index to it during run time and use it as miscdev's name

snprintf(rsmu->name, sizeof(rsmu->name), "rsmu%d", rsmu->index);
rsmu->miscdev.name = rsmu->name;
>
> Then why are you saving it off?
>

For things like dev_err(rsmu->dev, "Undefined RSMU IOCTL");

>
> Ok, that should be documented a bit, it wasn't obvious :)
>

Will do for the next patch

>
> So you can just look it up from the name?
>

name is based on this index in the first place