bq25703_set_ichg_cur(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bq25703_set_ichg_cur β€” from the Kernel API Manual, bestie

okay so this is a page straight out of the Kernel API Manual, and it's basically the "how do I tell the charger 'hey bestie, max out at this many microamps'" function. it's giving power-supply-core realness ✨


🌸 NAME 🌸

bq25703_set_ichg_cur β€” set the maximum charge current. that's it, that's the whole vibe πŸŽ€


⚑ SYNOPSIS ⚑

int bq25703_set_ichg_cur (struct bq257xx_chg *pdata , int ichg );

🫢 ARGUMENTS 🫢

  • pdata β€” the driver platform data. like, the charger's whole personality file πŸ’–
  • ichg β€” the current value you wanna set, in uA (microamps, tiny units, big deal) ⭐

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea β˜•: this function takes whatever maximum charge current value you asked for, and then it clamps it β€” lowkey a vibe check for numbers, honestly. it squishes your value so it's no lower than the minimum supported value by the charger, and no higher than a user defined maximum charging value. then it writes that nicely-behaved value to the appropriate register. iconic. no cap. πŸ‘‘

so like, you can't just walk in with any old number β€” the charger and the user both get a say. it's giving boundaries, and honestly? respect. πŸ’…


πŸ’€ RETURN πŸ’€

returns 0 on success, or an error if an error occurs. (yes bestie, that's the whole report β€” an error means an error, we move 🫑)


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” starting with the kernel file ./drivers/power/supply/bq257xx_charger.c:


okay that's the whole page!! πŸ¦‹ dropping the receipts: this one lives in ./drivers/power/supply, dated October 2026, and it's a certified Kernel API Manual moment. stay charged bestie, mwah πŸ’œπŸŒΈ

πŸ“¦ where this page comes from