bq25792_get_state(9)
πΈ NAME πΈ
okay so this is bq25792_get_state(9) from the Kernel API Manual, and its whole main-character job is: get the current state of the device. slay π
β¨ SYNOPSIS β¨
the vibe check is literally this one function:
int bq25792_get_state (struct bq257xx_chg *pdata );
π«Ά ARGUMENTS π«Ά
pdataβ driver platform data. that's the one and only argument, bestie, no extras.
π DESCRIPTION π
okay so bq25792_get_state gets the current state of the BQ25792 charger by reading status registers. then it updates the online, charging, overvoltage, and fault status fields in the driver data structure. it's giving very useful, very demure, very "i read the registers so you don't have to" energy β¨
π₯ RETURN π₯
Returns 0 on success, or an error on failure to read device. that's the whole return situation, fr fr. π
π SEE ALSO π
Kernel file: ./drivers/power/supply/bq257xx_charger.c
the linked-API group chat is:
struct bq257xx_chip_info(9)struct bq257xx_chg(9)bq25792_read16(9)bq25792_write16(9)bq25703_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)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)
bye bestie π«Ά this page's footer energy is source/version ./drivers/power/supply, date October 2026, and yes the manual is bq25792_get_state(9). periodt π
π¦ 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