bq25792_get_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:


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