]> git.baikalelectronics.ru Git - kernel.git/commit
psci: Replace psci_function_id array with a struct
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:41:01 +0000 (18:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 08:44:24 +0000 (08:44 +0000)
commit2bd12b1b77139c474a2680a1426f558c5ebdab4f
treebc778b53c34e972b5babc6e5fb12e031af0a9c88
parent31ab26193dbbdf9dac97231429732ad1d8d185a6
psci: Replace psci_function_id array with a struct

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-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20201202184122.26046-6-dbrazdil@google.com
drivers/firmware/psci/psci.c