From 8a2c904616722f51f5d3a500ba41b7e21b4735e2 Mon Sep 17 00:00:00 2001 From: Dinesh Gehlot Date: Tue, 17 Jan 2023 05:12:07 +0000 Subject: soc/intel/cannonlake: Use common gpio.h include Replace the intelblocks/gpio.h, soc/gpio.h and soc/gpio_defs.h includes with the common gpio.h which includes soc/gpio.h which includes intelblocks/gpio.h which includes soc/gpio_defs.h. This patch also fixes alphabetic ordering of included headers. BUG=b:261778357 TEST=Able to build and boot. Signed-off-by: Dinesh Gehlot Change-Id: I349a2b24ecdee347548b5c7b292c5075e6150a19 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72033 Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/soc/intel/cannonlake/acpi/gpio.asl | 3 +-- src/soc/intel/cannonlake/bootblock/bootblock.c | 2 +- src/soc/intel/cannonlake/bootblock/pch.c | 3 +-- src/soc/intel/cannonlake/chip.c | 2 +- src/soc/intel/cannonlake/chip.h | 4 ++-- src/soc/intel/cannonlake/gpio.c | 2 +- src/soc/intel/cannonlake/gpio_cnp_h.c | 2 +- src/soc/intel/cannonlake/gpio_common.c | 2 +- src/soc/intel/cannonlake/pmutil.c | 4 ++-- 9 files changed, 11 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/soc/intel/cannonlake/acpi/gpio.asl b/src/soc/intel/cannonlake/acpi/gpio.asl index 7c76962d98..666d605be1 100644 --- a/src/soc/intel/cannonlake/acpi/gpio.asl +++ b/src/soc/intel/cannonlake/acpi/gpio.asl @@ -1,9 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include +#include #include #include #include -#include Device (GPIO) { diff --git a/src/soc/intel/cannonlake/bootblock/bootblock.c b/src/soc/intel/cannonlake/bootblock/bootblock.c index a138ec4ba7..4514050982 100644 --- a/src/soc/intel/cannonlake/bootblock/bootblock.c +++ b/src/soc/intel/cannonlake/bootblock/bootblock.c @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include +#include #include -#include #include #include #include diff --git a/src/soc/intel/cannonlake/bootblock/pch.c b/src/soc/intel/cannonlake/bootblock/pch.c index 8ec4782690..9df4ac35b9 100644 --- a/src/soc/intel/cannonlake/bootblock/pch.c +++ b/src/soc/intel/cannonlake/bootblock/pch.c @@ -4,8 +4,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/cannonlake/chip.c b/src/soc/intel/cannonlake/chip.c index c001e9847e..19b8c396b3 100644 --- a/src/soc/intel/cannonlake/chip.c +++ b/src/soc/intel/cannonlake/chip.c @@ -4,9 +4,9 @@ #include #include #include +#include #include #include -#include #include #include #include diff --git a/src/soc/intel/cannonlake/chip.h b/src/soc/intel/cannonlake/chip.h index c7e71f6fe6..e8d46d41d3 100644 --- a/src/soc/intel/cannonlake/chip.h +++ b/src/soc/intel/cannonlake/chip.h @@ -3,10 +3,10 @@ #ifndef _SOC_CHIP_H_ #define _SOC_CHIP_H_ -#include #include #include -#include +#include +#include #include #include #include diff --git a/src/soc/intel/cannonlake/gpio.c b/src/soc/intel/cannonlake/gpio.c index 0e8c4f1bf5..93a71e06ce 100644 --- a/src/soc/intel/cannonlake/gpio.c +++ b/src/soc/intel/cannonlake/gpio.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include +#include #include #include #include diff --git a/src/soc/intel/cannonlake/gpio_cnp_h.c b/src/soc/intel/cannonlake/gpio_cnp_h.c index 0074cbf726..4189ebf808 100644 --- a/src/soc/intel/cannonlake/gpio_cnp_h.c +++ b/src/soc/intel/cannonlake/gpio_cnp_h.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include +#include #include #include #include diff --git a/src/soc/intel/cannonlake/gpio_common.c b/src/soc/intel/cannonlake/gpio_common.c index 4307260cd1..68a6bedbc0 100644 --- a/src/soc/intel/cannonlake/gpio_common.c +++ b/src/soc/intel/cannonlake/gpio_common.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include +#include #include /* diff --git a/src/soc/intel/cannonlake/pmutil.c b/src/soc/intel/cannonlake/pmutil.c index 480f65b100..94725f6139 100644 --- a/src/soc/intel/cannonlake/pmutil.c +++ b/src/soc/intel/cannonlake/pmutil.c @@ -8,16 +8,16 @@ #define __SIMPLE_DEVICE__ #include +#include #include #include #include #include -#include +#include #include #include #include #include -#include #include #include #include -- cgit v1.2.3