bq25792_set_ichg_cur(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bq25792_set_ichg_cur(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual entry for bq25792_set_ichg_cur(9). yes the name is long. yes it's a whole vibe. let's get into it 🫢


✨ NAME ✨

bq25792_set_ichg_cur β€” the function that sets the maximum charge current, no cap (well, actually, lots of clamping, but you'll see πŸ’€)


πŸŽ€ SYNOPSIS πŸŽ€

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

🌸 ARGUMENTS 🌸

  • pdata β€” the driver platform data, aka the whole personality of this charger ic πŸ’–
  • ichg β€” the current value you wanna set, measured in uA (microamps, not to be confused with anything else, iykyk)

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea β˜•: this function sets the maximum charge current by clamping the value you asked for between the device limits, and then writing it to the appropriate register. that's it. that's the whole function. it's giving "responsible friend who won't let you order 12 shots" energy and honestly? iconic πŸ”₯


πŸ‘‘ RETURN πŸ‘‘

Returns 0 on success, or an error on failure to write. periodt πŸ’…


🌈 SEE ALSO 🌈

okay bestie, buckle up, this list is long β€” the kernel file lives at ./drivers/power/supply/bq257xx_charger.c and it has a whole friend group:


ngl the whole bq25703 / bq25792 twin situation is giving sibling energy β€” they show up everywhere together and you literally cannot separate them 😭

<div align="center">✨ that's the whole page bestie ✨</div>

this absolute baddie of a manpage lives in ./drivers/power/supply, dated October 2026 β€” go off, kernel docs, we love to see it πŸ’œπŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from