diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-12-20 22:47:35 +0100 |
---|---|---|
committer | Shelley Chen <shchen@google.com> | 2023-12-26 17:21:42 +0000 |
commit | aa8ae1a9b832a2a3f7ee6c013dbac6c00ddfaacf (patch) | |
tree | 9db3361527e295c6a4eb68caa3960c4fa90d4150 /src/soc/amd/stoneyridge/chip.h | |
parent | 727ee667561909ecb05a2671bd7d885aa111cd60 (diff) |
soc/amd/common/pi/agesawrapper: use is_dev_enabled(DEV_PTR())
Since we have chipset devicetrees for all SoCs that include this code in
the build, we can use the DEV_PTR macro instead of using
pcidev_path_on_root to get the device struct pointer. We can also use
the is_dev_enabled function instead of checking the value of the enabled
element of the device struct directly.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I5dcd92399e2d3f304352f2170dd3ef8761e86541
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79672
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/stoneyridge/chip.h')
0 files changed, 0 insertions, 0 deletions