bq25792_set_iindpm(9)
β¨ bq25792_set_iindpm(9) β¨
okay so this is a page straight out of the Kernel API Manual (yes, the kernel has lore too π
) and it's all about bq25792_set_iindpm β literally the function that sets your maximum input current. buckle up bestie, it's short but it eats π
πΈ SYNOPSIS πΈ
int bq25792_set_iindpm (struct bq257xx_chg *pdata , int iindpm );
that's the whole vibe check: it takes two things and hands you back an int. no cap β¨
π ARGUMENTS π
pdataβ the driver platform data, aka the whole personality of your bq257xx chip π«Άiindpmβ the current value, inuA(microamps, tiny little guys) β‘
π DESCRIPTION π
so what does it do? it sets the maximum input current by clamping the value you asked for between the device limits, and then writing that clamped number to the appropriate register. that's it. that's the whole main character moment π₯
think of it as: you ask for a current, the device says "bestie, that's out of range," and clamps you to something it can actually handle. then it commits by writing to the register. periodt π
β RETURN β
returns 0 on success, or an error if the write fails π β a failed write is a failed write, no sugarcoating it.
ngl, always check that return value. a silent error is giving π energy.
π¦ SEE ALSO π¦
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), 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), bq25703_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)
go read the whole friend group, they're all iconic π
and that's the page!! π§ from ./drivers/power/supply, dated October 2026, answering to the name bq25792_set_iindpm(9). 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