bq25792_get_chrg_volt(9)
π bq25792_get_chrg_volt(9) β like, the Kernel API Manual page you actually wanna read π
okay bestie, welcome to the Kernel API Manual entry for bq25792_get_chrg_volt, and no this is not a drill, we're reading kernel docs together and it's gonna be iconic β¨
πΈ NAME πΈ
bq25792_get_chrg_volt β get the maximum set charge voltage π
β‘ SYNOPSIS β‘
int bq25792_get_chrg_volt (struct bq257xx_chg *pdata , int *intval );
π«Ά ARGUMENTS π«Ά
pdataβ the driver platform data. it's giving "the context object you gotta hand over before anything works" energy π¦intvalβ a pointer where the maximum charge voltage value gets stashed. literally, that's where the answer lands. π
π₯ DESCRIPTION π₯
So the whole vibe of this function? It reads the current charge voltage limit straight off the device. that's it, that's the tea β β it goes and fetches the limit that's set rn, no cap.
π RETURN π
Returns 0 on success, or an error if it fumbled reading the value π (i.e. error on failure to read value β fr fr, check it).
ngl bestie, always check that return value. the 0 is the slay, anything else is the π.
π SEE ALSO π
Kernel file ./drivers/power/supply/bq257xx_charger.c π and the whole squad:
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)bq25703_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)
and that's the whole page, bestie π§ that's a wrap π
source: ./drivers/power/supply Β· dated October 2026 Β· manual page bq25792_get_chrg_volt(9) β ty for reading, ily, go check your return codes πβ¨
π¦ 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