summaryrefslogtreecommitdiff
path: root/src/mainboard/google/nyan/pmic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/nyan/pmic.c')
-rw-r--r--src/mainboard/google/nyan/pmic.c6
1 files changed, 3 insertions, 3 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