bq25703_set_iindpm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– bq25703_set_iindpm β€” like, the Kernel API Manual page, bestie πŸ’–

okay so bestie, welcome to bq25703_set_iindpm(9) from the Kernel API Manual ✨ this is the lil function in ./drivers/power/supply that handles your max input current, and honestly? she's doing a lot in three lines. let's get into it 🫢


✨ NAME ✨

bq25703_set_iindpm β€” set the maximum input current πŸ’…


✨ SYNOPSIS ✨

int bq25703_set_iindpm (struct bq257xx_chg *pdata , int iindpm );

like yes, that's the whole signature, no cap πŸ”₯


✨ ARGUMENTS ✨

  • pdata β€” the driver platform data πŸŽ€ this is the charger's whole situation, her little context bag.
  • iindpm β€” the current value, in uA ⚑ (microamps, bestie, she's precise).

🌸 DESCRIPTION 🌸

okay so here's the vibe πŸ’– this function takes a requested maximum input current value, clamps it between the minimum supported value by the charger and a user defined maximum input value, and then writes the value to the appropriate register.

like β€” it's giving bouncer energy πŸšͺ✨ your requested value does not just walk in. it gets squished into the allowed range first (min from the charger itself, max from whatever the user set), and then it gets written straight to the appropriate register. obsessed with the order of operations honestly πŸ‘‘


🌈 RETURN 🌈

Returns 0 on success, or an error if an error occurs. that's it, that's the deal 🫢 (yes, "error if an error occurs" β€” she said what she said πŸ’€)


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/power/supply/bq257xx_charger.c β€” plus the whole friend group, fr fr:


and that's the page, bestie πŸ§šπŸ’œ it lives over in ./drivers/power/supply, dated October 2026, and it's literally titled bq25703_set_iindpm(9) β€” go read the whole kernel API manual, iykyk πŸŒŸπŸŽ€

πŸ“¦ where this page comes from