bq25703_get_iindpm(9)
π bq25703_get_iindpm β Kernel API Manual β¨
okay bestie, welcome to the function that tells you how much input current your charger is actually letting through. it's a kernel API page (bq25703_get_iindpm(9), if we're being formal π
) and it's short, sweet, and lowkey iconic. let's go π«Ά
β¨ NAME β¨
bq25703_get_iindpm β get the maximum set input current πΈ
π SYNOPSIS π
int bq25703_get_iindpm (struct bq257xx_chg *pdata , int *intval );
like, that's the whole vibe. one struct in, one int pointer out, returns an int π
π¦ ARGUMENTS π¦
pdataβ driver platform data. the whole charger situation, basically. main character energy π«intvalβ maximum input current value. this is where the answer lands, so don't pass it garbage, fr fr π
π DESCRIPTION π
so here's the tea β: this one reads the actual input current limit from the device straight into intval. read it again β the actual one, not the one you asked for.
it can differ from the value you programmed, because of some autonomous functions that may be enabled (but bestie, note the parenthetical β they are not currently enabled π). that's literally the whole reason there's a different register used for this. different register, different rules, iykyk π
ngl it's giving "trust but verify" and honestly? obsessed β¨
π₯ RETURN π₯
returns 0 on success π or an error if it's unable to read the register value π (yeah, that can happen β check your return codes, bestie, always)
π SEE ALSO π
the whole friend group π«Ά β every single one of them:
kernel file ./drivers/power/supply/bq257xx_charger.c alongside:
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)bq25792_get_iindpm(9)bq25703_set_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)
ok that's the page!! go read your registers, hydrate, and remember: intval is a pointer, so pass it something real π
and finally, the lil sign-off: this beauty lives under ./drivers/power/supply, dated October 2026, and it's filed as bq25703_get_iindpm(9). slay π
β¨
π¦ 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