bq25703_set_ichg_cur(9)
π 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, inuA(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:
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)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)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)
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
- 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