]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/ArmScmiDxe: Dynamically allocate buffer for protocol ids
authorGirish Pathak <girish.pathak@arm.com>
Tue, 19 Jun 2018 13:53:53 +0000 (14:53 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 22 Jun 2018 06:22:04 +0000 (08:22 +0200)
commit3b03b5e990f8bb347dfdb91926d8ef015d0b607e
tree516064273ee34d27207d5f26cef74eda70b4085e
parent889cf68c3cd67617e274526822e553bfb07cd231
ArmPkg/ArmScmiDxe: Dynamically allocate buffer for protocol ids

Dynamically allocate the buffer to receive the SCMI protocol list.
This makes MAX_PROTOCOLS redundant, so it is removed.
It also fixes one minor code alignment issue and removes an unused
macro PROTOCOL_MASK.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Girish Pathak <girish.pathak@arm.com>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
ArmPkg/Drivers/ArmScmiDxe/Scmi.c
ArmPkg/Drivers/ArmScmiDxe/ScmiDxe.c
ArmPkg/Drivers/ArmScmiDxe/ScmiDxe.h