Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions drivers/mfd/mfd_npm13xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define GPIO_OFFSET_MODE 0x00U

#define TIMER_PRESCALER_MS 16U
#define TIMER_MAX 0xFFFFFFU
#define NPM13XX_TIMER_MAX 0xFFFFFFU

#define MAIN_SIZE 0x26U

Expand Down Expand Up @@ -242,7 +242,7 @@ int mfd_npm13xx_set_timer(const struct device *dev, uint32_t time_ms)
uint8_t buff[5] = {NPM13XX_TIME_BASE, TIME_OFFSET_TIMER};
uint32_t ticks = time_ms / TIMER_PRESCALER_MS;

if (ticks > TIMER_MAX) {
if (ticks > NPM13XX_TIMER_MAX) {
return -EINVAL;
}

Expand Down