bq25792_set_iindpm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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, in uA (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