Re: [PATCH v4 05/26] psci: Replace psci_function_id array with a struct

2020-12-03 Thread Mark Rutland
On Wed, Dec 02, 2020 at 06:41:01PM +, David Brazdil wrote: > Small refactor that replaces array of v0.1 function IDs indexed by an > enum of function-name constants with a struct of function IDs "indexed" > by field names. This is done in preparation for exposing the IDs to > other parts of the

[PATCH v4 05/26] psci: Replace psci_function_id array with a struct

2020-12-02 Thread David Brazdil
Small refactor that replaces array of v0.1 function IDs indexed by an enum of function-name constants with a struct of function IDs "indexed" by field names. This is done in preparation for exposing the IDs to other parts of the kernel. Exposing a struct avoids the need for bounds checking. Signed