Skip to content

charger: bq25713: Corrects unsigned int comparison #90696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025
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
3 changes: 1 addition & 2 deletions drivers/charger/charger_bq25713.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ static int bq25713_set_minimum_system_voltage(const struct device *dev, uint32_t

static int bq25713_set_constant_charge_current(const struct device *dev, uint32_t current_ua)
{
if (!IN_RANGE(current_ua, BQ25713_REG_CC_CHARGE_CURRENT_MIN_UA,
BQ25713_REG_CC_CHARGE_CURRENT_MAX_UA)) {
if (current_ua > BQ25713_REG_CC_CHARGE_CURRENT_MAX_UA) {
LOG_WRN("charging current out of range: %umA, "
"clamping to the nearest limit",
current_ua / BQ25713_FACTOR_U_TO_M);
Expand Down