aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86/acpi_device.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-16 14:16:56 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-17 03:18:04 +0100
commite5f29e8bf8c928a83764fcf428c1a05767bff7dd (patch)
tree1df8041f4973b5ba691d5cfe23262743434bb171 /src/arch/x86/acpi_device.c
parent024b13d07c6dcef7acefc3b69c16c46be431fb82 (diff)
arch/x86: Fix prefer errors detected by checkpatch
Fix the following warnings detected by checkpatch.pl: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' WARNING: plain inline is preferred over __inline__ TEST=Build and run on Galileo Gen2 Change-Id: I8ba98dfe04481a7ccf4f3b910660178b7e22a4a7 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18863 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/arch/x86/acpi_device.c')
-rw-r--r--src/arch/x86/acpi_device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/x86/acpi_device.c b/src/arch/x86/acpi_device.c
index 42305a6ab4..8ea6f5e8aa 100644
--- a/src/arch/x86/acpi_device.c
+++ b/src/arch/x86/acpi_device.c
@@ -492,12 +492,12 @@ void acpi_device_write_spi(const struct acpi_spi *spi)
/* PowerResource() with Enable and/or Reset control */
void acpi_device_add_power_res(
- struct acpi_gpio *reset, unsigned reset_delay_ms,
- struct acpi_gpio *enable, unsigned enable_delay_ms)
+ struct acpi_gpio *reset, unsigned int reset_delay_ms,
+ struct acpi_gpio *enable, unsigned int enable_delay_ms)
{
const char *power_res_dev_states[] = { "_PR0", "_PR3" };
- unsigned reset_gpio = reset->pins[0];
- unsigned enable_gpio = enable->pins[0];
+ unsigned int reset_gpio = reset->pins[0];
+ unsigned int enable_gpio = enable->pins[0];
if (!reset_gpio && !enable_gpio)
return;