lkml.org 
[lkml]   [2021]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH net-next v2 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support
Date
> 
> 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

\
 
 \ /
  Last update: 2021-04-08 19:36    [W:0.057 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site