bq257xx_parse_dt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ bq257xx_parse_dt(9) ✨

Okay bestie, welcome to the Kernel API Manual β€” this page is fully about pulling the required setup out of the device tree. 🫢

πŸŽ€ NAME πŸŽ€

bq257xx_parse_dt β€” parse the device tree for required properties πŸ’…

🌸 SYNOPSIS 🌸

int bq257xx_parse_dt (struct bq257xx_chg *pdata , struct
       power_supply_config *psy_cfg , struct device *dev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdata β€” driver platform data. It's the driver's own platform-data situation, literally. πŸ‘œ
  • psy_cfg β€” power supply config data. The config data for the power supply, no cap. πŸ”‹
  • dev β€” device struct. The device struct itself, bestie. 🧸

⚑ DESCRIPTION ⚑

Okay so here's the vibe: bq257xx_parse_dt() reads the device tree to identify four key things β€” the minimum system voltage, the maximum charge current, the maximum charge voltage, and the maximum input current. That's minimum system voltage, maximum charge current, maximum charge voltage, and maximum input current. Periodt. πŸ”₯

βœ… RETURN βœ…

Returns 0 on success or an error code on error. That's it β€” success is 0, and an error is an error code. No cap. 😭

πŸ”— SEE ALSO πŸ”—

Kernel file: ./drivers/power/supply/bq257xx_charger.c β€” the whole charger source, iykyk. πŸ“


✨ Cute lil sign-off: source/version is ./drivers/power/supply, date is October 2026, and the page is bq257xx_parse_dt(9). Mwah, slay, bye πŸ’‹πŸŽ€

πŸ“¦ where this page comes from