bq25703_get_chrg_volt(9)
π 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:
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)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)
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 thebq25703_get_chrg_volt(9)page β mwah, periodt π π
go read voltage, love u, bye π«Άπ·
π¦ 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