On Mon, 28 Oct 2019 22:42:13 +0100,
Alex Deucher wrote:
>
> @@ -35,6 +35,11 @@
> #include
> #include
> #include
> +#ifdef SUPPORT_VGA_SWITCHEROO
> +#ifdef CONFIG_ACPI
> +#include
> +#endif
> +#endif
I don't think we need ifdefs here.
Other than that,
Reviewed-by: Takashi Iwai
thanks,
Only enable the vga_switcheroo logic on systems with the
ATPX ACPI method. This logic is not needed for asics
that are not part of a PX (PowerXpress)/HG (Hybrid Graphics)
platform.
Acked-by: Evan Quan
Signed-off-by: Alex Deucher
---
v2:
- check CONFIG_ACPI
- fix pci ref logic