diff --git a/drivers/regulator/regulator_npm1300.c b/drivers/regulator/regulator_npm1300.c index 8adb2d3cb81..da0a3aedb64 100644 --- a/drivers/regulator/regulator_npm1300.c +++ b/drivers/regulator/regulator_npm1300.c @@ -533,7 +533,7 @@ static int get_enabled_reg(const struct device *dev, uint8_t base, uint8_t offse int ret = mfd_npm1300_reg_read(config->mfd, base, offset, &data); - if (ret != 0) { + if (ret < 0) { return ret; }