Messages in this thread | | | From | Min Li <> | Subject | RE: [PATCH net-next v2 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support | Date | Thu, 8 Apr 2021 17:36:13 +0000 |
| |
> > 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
| |