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/smaug | |
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/smaug')
-rw-r--r-- | src/mainboard/google/smaug/pmic.c | 8 | ||||
-rw-r--r-- | src/mainboard/google/smaug/pmic.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mainboard/google/smaug/pmic.c b/src/mainboard/google/smaug/pmic.c index 9add211ccd..68e0f6ccd3 100644 --- a/src/mainboard/google/smaug/pmic.c +++ b/src/mainboard/google/smaug/pmic.c @@ -36,7 +36,7 @@ struct max77620_init_reg { u8 delay; }; -static void pmic_write_reg(unsigned bus, uint8_t chip, uint8_t reg, uint8_t val, +static void pmic_write_reg(unsigned int bus, uint8_t chip, uint8_t reg, uint8_t val, int delay) { if (i2c_writeb(bus, chip, reg, val)) { @@ -50,19 +50,19 @@ static void pmic_write_reg(unsigned bus, uint8_t chip, uint8_t reg, uint8_t val, } } -void pmic_write_reg_77620(unsigned bus, uint8_t reg, uint8_t val, +void pmic_write_reg_77620(unsigned int bus, uint8_t reg, uint8_t val, int delay) { pmic_write_reg(bus, MAX77620_I2C_ADDR, reg, val, delay); } -static inline void pmic_write_reg_77621(unsigned bus, uint8_t reg, uint8_t val, +static inline void pmic_write_reg_77621(unsigned int bus, uint8_t reg, uint8_t val, int delay) { pmic_write_reg(bus, MAX77621_CPU_I2C_ADDR, reg, val, delay); } -void pmic_init(unsigned bus) +void pmic_init(unsigned int bus) { /* MAX77620: Set SD0 to 1.0V - VDD_CORE */ pmic_write_reg_77620(bus, MAX77620_SD0_REG, 0x20, 1); diff --git a/src/mainboard/google/smaug/pmic.h b/src/mainboard/google/smaug/pmic.h index e01a556948..130f134d95 100644 --- a/src/mainboard/google/smaug/pmic.h +++ b/src/mainboard/google/smaug/pmic.h @@ -73,8 +73,8 @@ #define MAX77621_CONTROL1_REG 0x02 #define MAX77621_CONTROL2_REG 0x03 -void pmic_init(unsigned bus); -void pmic_write_reg_77620(unsigned bus, uint8_t reg, uint8_t val, +void pmic_init(unsigned int bus); +void pmic_write_reg_77620(unsigned int bus, uint8_t reg, uint8_t val, int delay); #endif /* __MAINBOARD_GOOGLE_FOSTER_PMIC_H__ */ |