[PATCH v6 14/20] firmware: arm_scmi: add per-protocol channels support using idr objects

2018-02-23 Thread Sudeep Holla
In order to maintain the channel information per protocol, we need some sort of list or hashtable to hold all this information. IDR provides sparse array mapping of small integer ID numbers onto arbitrary pointers. In this case the arbitrary pointers can be pointers to the channel information.

[PATCH v6 14/20] firmware: arm_scmi: add per-protocol channels support using idr objects

2018-02-23 Thread Sudeep Holla
In order to maintain the channel information per protocol, we need some sort of list or hashtable to hold all this information. IDR provides sparse array mapping of small integer ID numbers onto arbitrary pointers. In this case the arbitrary pointers can be pointers to the channel information.