lkml.org 
[lkml]   [2021]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH mfd v1] mfd: Add Renesas Synchronization Management Unit (SMU) support
Date
> 
> > +/* Current mfd device index */
> > +static atomic_t rsmu_ndevs = ATOMIC_INIT(0);
>
> Counting/indexing this way is generally not good/required.
>

Hi Lee

Since there could be more than one devices attached to the system, I am using this counter to track the index of each device.
How would you suggest to do it? Thanks

Min
\
 
 \ /
  Last update: 2021-05-25 17:21    [W:0.143 / U:1.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site