bq25703_set_min_vsys(9)
π bq25703_set_min_vsys β a kernel API manual, but make it make sense
okay so bestie, welcome to the Kernel API Manual, section 9. This one's about bq25703_set_min_vsys β the function that sets the minimum system voltage. Yes, it's exactly as iconic as it sounds. Let's get into it π«Ά
β¨ NAME β¨
bq25703_set_min_vsys β set the minimum system voltage. That's it, that's the whole gig π
πΈ SYNOPSIS πΈ
int bq25703_set_min_vsys (struct bq257xx_chg *pdata , int vsys );
π ARGUMENTS π
pdataβ the driver platform data. It's the whole vibe, you gotta hand it over.vsysβ the voltage value you wanna set, in uV. Yes, microvolts, keep up bestie β‘
π¦ DESCRIPTION π¦
So here's the tea: this function takes the minimum system voltage value you're asking for, and clamps it β like, it will not let it go rogue. It gets squeezed between the user defined minimum system value (the floor, the bare minimum, the "girl, at least this much") and the maximum supported value by the charger (the ceiling, the "we literally cannot go higher, no cap").
Then, once it's been clamped into that range, it writes the value to the appropriate register. Simple, elegant, main character energy π
π₯ RETURN π₯
Returns 0 on success β slay. Or an error if an error occurs π Which, yeah, is exactly what you'd expect.
π SEE ALSO π
Kernel file ./drivers/power/supply/bq257xx_charger.c, plus the 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)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)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)
<div align="center">that's the whole page bestie, ily, go set some voltages responsibly π β¨</div>
shoutout to the source at ./drivers/power/supply and the October 2026 date stamp β dated but never outdated π
π¦ 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