bq25703_set_iindpm(9)
π 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:
struct bq257xx_chip_info(9)struct bq257xx_chg(9)bq25792_read16(9)bq25792_write16(9)bq25703_get_state(9)bq25792_get_state(9)bq25703_get_min_vsys(9)bq25792_get_min_vsys(9)bq25703_set_min_vsys(9)bq25792_set_min_vsys(9)bq25703_get_cur(9)bq25792_get_cur(9)bq25703_get_ichg_cur(9)bq25792_get_ichg_cur(9)bq25703_set_ichg_cur(9)bq25792_set_ichg_cur(9)bq25703_get_chrg_volt(9)bq25792_get_chrg_volt(9)bq25703_set_chrg_volt(9)bq25792_set_chrg_volt(9)bq25703_get_iindpm(9)bq25792_get_iindpm(9)bq25792_set_iindpm(9)bq25703_get_vbat(9)bq25792_get_vbat(9)bq25703_hw_init(9)bq25792_hw_init(9)bq25703_hw_shutdown(9)bq25792_hw_shutdown(9)bq257xx_set_charger_property(9)bq257xx_get_charger_property(9)bq257xx_property_is_writeable(9)bq257xx_external_power_changed(9)bq257xx_irq_handler_thread(9)bq257xx_parse_dt(9)bq257xx_charger_probe(9)bq257xx_charger_shutdown(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms