bq25703_set_chrg_volt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bq25703_set_chrg_volt(9) β€” like, the Kernel API Manual page, bestie ✨

okay so real talk, this is a page straight out of the Kernel API Manual and honestly? it's lowkey iconic. it's all about bq25703_set_chrg_volt, one little function that has one job and does it slayfully. let's get into it πŸŽ€


🌸 NAME 🌸

bq25703_set_chrg_volt β€” sets the maximum charge voltage. that's it, that's the whole vibe. no cap. πŸ’–


✨ SYNOPSIS ✨

int bq25703_set_chrg_volt (struct bq257xx_chg *pdata , int vbat );

like, it takes two things and returns an int. simple. elegant. main character energy fr fr πŸ‘‘


🫢 ARGUMENTS 🫢

  • pdata β€” the driver platform data. it's giving "the whole charger's info card", she carries everything the driver needs to know about herself πŸ’β€β™€οΈ
  • vbat β€” the voltage value you wanna set, measured in uV. yep, microvolts. tiny units, big responsibility ⚑

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea 🍡 β€” this function takes the maximum charge voltage you're requesting, and then it clamps it. meaning if your number is too low, it gets bumped up to the minimum value the charger actually supports (she has standards, okay?), and if your number is too high, it gets capped at a user defined maximum charging value (protective queen behavior, we love to see it πŸ›‘οΈ).

and then, once your value has been politely corrected into the valid range, she writes it to the appropriate register. periodt. πŸ’…


πŸ”₯ RETURN πŸ”₯

returns 0 on success β€” or an error if an error occurs 😭 like yes bestie, errors do be happening sometimes.


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, gather round 🫢 this is the full squad, and yes, every single one of them matters:

iykyk πŸ’€βœ¨


ok that's the whole page bestie, go forth and set those charge voltages responsibly πŸ’–

and a lil sign-off for the credits moment 🌈 β€” this one lives in ./drivers/power/supply, and it's dated October 2026. iconic behavior, honestly. πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from