bq25703_set_min_vsys(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


<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