summaryrefslogtreecommitdiff
path: root/src/mainboard/google/nyan
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/nyan')
-rw-r--r--src/mainboard/google/nyan/pmic.c6
-rw-r--r--src/mainboard/google/nyan/pmic.h2
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__ */