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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user