Skip to content

Commit

Permalink
driver: mfd: axp192: Removed redudant i2c error messages
Browse files Browse the repository at this point in the history
According to PR comments, redudant error messages have been removed.
Only redundant error messages have meen removed. Mfd driver will
still report failed functional request.

Signed-off-by: Martin Kiepfer <[email protected]>
  • Loading branch information
Martin Kiepfer committed Jul 3, 2023
1 parent 7eb274f commit c01c85b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mfd/mfd_axp192.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ static int mfd_axp192_init(const struct device *dev)
/* Check if axp192 chip is available */
ret = i2c_reg_read_byte_dt(&config->i2c, AXP192_REG_CHIP_ID, &chip_id);
if (ret < 0) {
LOG_ERR("I2C read failed (%d)", ret);
return ret;
}

if (chip_id != AXP192_CHIP_ID) {
LOG_ERR("Invalid Chip detected (%d)", chip_id);
ret = -EINVAL;
}
LOG_INF("Chip detected");

return ret;
}
Expand Down

0 comments on commit c01c85b

Please sign in to comment.