summaryrefslogtreecommitdiff
path: root/src/drivers/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c')
-rw-r--r--src/drivers/i2c/rx6110sa/rx6110sa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/i2c/rx6110sa/rx6110sa.c b/src/drivers/i2c/rx6110sa/rx6110sa.c
index d793c4dd9c..266b5a8ac5 100644
--- a/src/drivers/i2c/rx6110sa/rx6110sa.c
+++ b/src/drivers/i2c/rx6110sa/rx6110sa.c
@@ -25,13 +25,13 @@
/* Function to write a register in the RTC with the given value. */
static void rx6110sa_write(struct device *dev, uint8_t reg, uint8_t val)
{
- i2c_writeb_at(dev, reg, val);
+ i2c_dev_writeb_at(dev, reg, val);
}
/* Function to read a register in the RTC. */
static uint8_t rx6110sa_read(struct device *dev, uint8_t reg)
{
- return (uint8_t)i2c_readb_at(dev, reg);
+ return (uint8_t)i2c_dev_readb_at(dev, reg);
}
/* Set RTC date from coreboot build date. */