bq25792_set_ichg_cur(9)
π 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:
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)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)
ngl the wholebq25703/bq25792twin 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
- 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