drivers: rtc: Fix failing RV8803 driver build when int-gpios not used
This PR fixes the issue that building the driver with either CONFIG_RTC_CALIBRATION=y or CONFIG_RTC_ALARM=y and without 'int-gpios' used will cause 'undefined reference to `rv8803_write_reg8'' error. Signed-off-by: Marcin Lyda <elektromarcin@gmail.com>
This commit is contained in:
parent
f7df2a7445
commit
f0a70b0366
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ static int rv8803_write_regs(const struct device *dev, uint8_t addr, const void
|
|||
return err;
|
||||
}
|
||||
|
||||
#ifdef RV8803_INT_GPIOS_IN_USE
|
||||
#if defined(RV8803_INT_GPIOS_IN_USE) || defined(CONFIG_RTC_ALARM) || defined(CONFIG_RTC_CALIBRATION)
|
||||
static int rv8803_write_reg8(const struct device *dev, uint8_t addr, uint8_t val)
|
||||
{
|
||||
return rv8803_write_regs(dev, addr, &val, sizeof(val));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue