diff options
author | Martin Roth <martin@coreboot.org> | 2019-10-23 21:41:43 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-10-27 21:08:49 +0000 |
commit | ad0f4853619b1c239b8ace7554958c6b4932c04f (patch) | |
tree | 30aab33490fa6d6dacc17a0f1bac99f0554c8ea5 /src/mainboard/google/foster | |
parent | 38ddbfb325866716c9c65a460e388f33d1a773dd (diff) |
src/mainboard: change "unsigned" to "unsigned int"
Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: I46d131f76ec930d2ef0f74e6eaabae067df10754
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36330
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/google/foster')
-rw-r--r-- | src/mainboard/google/foster/pmic.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/foster/pmic.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/google/foster/pmic.c b/src/mainboard/google/foster/pmic.c index 13e2a4743f..6435317a22 100644 --- a/src/mainboard/google/foster/pmic.c +++ b/src/mainboard/google/foster/pmic.c @@ -34,7 +34,7 @@ struct max77620_init_reg { u8 delay; }; -static void pmic_write_reg(unsigned bus, uint8_t reg, uint8_t val, int delay) +static void pmic_write_reg(unsigned int bus, uint8_t reg, uint8_t val, int delay) { if (i2c_writeb(bus, MAX77620_I2C_ADDR, reg, val)) { printk(BIOS_ERR, "%s: reg = 0x%02X, value = 0x%02X failed!\n", @@ -47,7 +47,7 @@ static void pmic_write_reg(unsigned bus, uint8_t reg, uint8_t val, int delay) } } -void pmic_init(unsigned bus) +void pmic_init(unsigned int bus) { /* Setup/Enable GPIO5 - VDD_CPU_REG_EN */ pmic_write_reg(bus, MAX77620_GPIO5_REG, 0x09, 1); diff --git a/src/mainboard/google/foster/pmic.h b/src/mainboard/google/foster/pmic.h index 13ca1ee600..b4735bde95 100644 --- a/src/mainboard/google/foster/pmic.h +++ b/src/mainboard/google/foster/pmic.h @@ -65,6 +65,6 @@ #define MAX77620_CID4_REG 0x5C #define MAX77620_CID5_REG 0x5D -void pmic_init(unsigned bus); +void pmic_init(unsigned int bus); #endif /* __MAINBOARD_GOOGLE_FOSTER_PMIC_H__ */ |