RE: [PATCH mfd v1] mfd: Add Renesas Synchronization Management Unit (SMU) support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> > +/* 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




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux