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/nyan | |
parent | 38ddbfb325866716c9c65a460e388f33d1a773dd (diff) | |
download | coreboot-ad0f4853619b1c239b8ace7554958c6b4932c04f.tar.xz |
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/nyan')
-rw-r--r-- | src/mainboard/google/nyan/pmic.c | 6 | ||||
-rw-r--r-- | src/mainboard/google/nyan/pmic.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/google/nyan/pmic.c b/src/mainboard/google/nyan/pmic.c index d2264591fd..893d2eace5 100644 --- a/src/mainboard/google/nyan/pmic.c +++ b/src/mainboard/google/nyan/pmic.c @@ -55,7 +55,7 @@ static struct as3722_init_reg init_list[] = { {AS3722_LDO11, 0x00, 1}, }; -static void pmic_write_reg(unsigned bus, uint8_t reg, uint8_t val, int do_delay) +static void pmic_write_reg(unsigned int bus, uint8_t reg, uint8_t val, int do_delay) { if (i2c_writeb(bus, AS3722_I2C_ADDR, reg, val)) { printk(BIOS_ERR, "%s: reg = 0x%02X, value = 0x%02X failed!\n", @@ -68,7 +68,7 @@ static void pmic_write_reg(unsigned bus, uint8_t reg, uint8_t val, int do_delay) } } -static void pmic_slam_defaults(unsigned bus) +static void pmic_slam_defaults(unsigned int bus) { int i; for (i = 0; i < ARRAY_SIZE(init_list); i++) { @@ -77,7 +77,7 @@ static void pmic_slam_defaults(unsigned bus) } } -void pmic_init(unsigned bus) +void pmic_init(unsigned int bus) { /* * Don't need to set up VDD_CORE - already done - by OTP diff --git a/src/mainboard/google/nyan/pmic.h b/src/mainboard/google/nyan/pmic.h index 9843b72156..639725e431 100644 --- a/src/mainboard/google/nyan/pmic.h +++ b/src/mainboard/google/nyan/pmic.h @@ -39,6 +39,6 @@ enum { AS3722_LDO11, }; -void pmic_init(unsigned bus); +void pmic_init(unsigned int bus); #endif /* __MAINBOARD_GOOGLE_NYAN_PMIC_H__ */ |