soc/intel/xeon_sp: Pass IIO_RESOURCE_INSTANCE as pointer
commit6df38700123820fa95ad3de5bfaef6def1a112f2
authorJacob Garber <jgarber1@ualberta.ca>
Sat, 24 Oct 2020 22:23:45 +0000 (24 16:23 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 4 Nov 2020 09:38:23 +0000 (4 09:38 +0000)
tree3d0b57959ca90cc53e405b5e4e24971a833f7fe4
parent5193312e1e26d3e9e865cb4584b823cfe2e52f0d
soc/intel/xeon_sp: Pass IIO_RESOURCE_INSTANCE as pointer

IIO_RESOURCE_INSTANCE is a large struct, so it should be passed as a
constant pointer rather than making a copy.

Found-by: Coverity CID 1432759
Change-Id: Iebbb4d292f4d956e767bda28cbf20b0318586510
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46729
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/intel/xeon_sp/nb_acpi.c