bq25703_get_chrg_volt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– bq25703_get_chrg_volt πŸ’–

okay so bestie, this is a page from the Kernel API Manual β€” like, the actual kernel docs, not a vibe β€” and it's all about bq25703_get_chrg_volt, a little function that goes and grabs the maximum set charge voltage for you. that's the whole name, that's the whole job. slay. ✨


🌸 NAME 🌸

bq25703_get_chrg_volt β€” Get the maximum set charge voltage πŸ’…

like literally, it fetches the max charge voltage that's been set. that's it. that's the function. iconic behavior honestly.


πŸŽ€ SYNOPSIS πŸŽ€

int bq25703_get_chrg_volt (struct bq257xx_chg *pdata , int *intval );

so it takes these two things, and it hands you back an int. keep reading, i promise it's not scary 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdata β€” driver platform data. yeah. the driver platform data. it's the struct the driver passes around, and our function needs it to do its little thing πŸ’«
  • intval β€” maximum charge voltage value. that's where the number lands. it's a pointer, so like, the value gets written through it. main character pointer energy fr fr πŸ‘‘

⭐ RETURN ⭐

returns 0 on success β€” yay!! πŸŽ‰ β€” or an error if it's unable to read the value 😭. so like, if you get 0, you ate. if you get an error, the read didn't happen. no cap.

ngl, always check the return value. 0 = we're so back. error = it's giving "couldn't read it" πŸ’€

🌈 SEE ALSO 🌈

okay this is the part where the manpage just, like, dumps the entire friend group on you. here's everyone in the bq257xx cinematic universe πŸ’–

Kernel file ./drivers/power/supply/bq257xx_charger.c:

like, that's a lot of siblings. one big happy charger driver family 🧚✨ and yes, there's a bq25792_get_chrg_volt(9) in there too β€” the 792 version of this exact vibe. iykyk πŸ’œ


that's the whole page, bestie!! short and sweet, just how we like it πŸ“

source + version + date sign-off: this one lives in ./drivers/power/supply, dated October 2026, and it's the bq25703_get_chrg_volt(9) page β€” mwah, periodt πŸ’…πŸ’–

go read voltage, love u, bye 🫢🌷

πŸ“¦ where this page comes from