bq25792_get_ichg_cur(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– bq25792_get_ichg_cur(9) β€” the Kernel API Manual glow-up ✨

okay bestie, so this is a page straight out of the Kernel API Manual, and it's about one tiny little function that goes and asks your charger chip "hey, what's the max charge current you've got set rn?" 🩡 iconic behaviour, no notes.


🌸 NAME 🌸

bq25792_get_ichg_cur β€” Get the maximum reported charge current πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int bq25792_get_ichg_cur (struct bq257xx_chg *pdata , int *intval );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdata β€” the driver platform data, aka the whole vibe of your chip's setup 🫢
  • intval β€” a pointer to where the maximum charge current value gets stored. it's giving "output goes here" energy ✨

πŸ”₯ DESCRIPTION πŸ”₯

Read the programmed maximum charge current limit from the device. that's it, that's the whole thing β€” it literally goes and fetches the current limit that's been set on the chip, lowkey simple, highkey useful πŸ’œ


⭐ RETURN ⭐

Returns 0 on success, or an error on failure to read value 😭 (so like, always check it, bestie, fr fr).


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/power/supply/bq257xx_charger.c β€” plus the whole friend group:


and that's the page, bestie πŸ§šπŸ’– this lil beauty lives over in ./drivers/power/supply, dated October 2026 β€” so like, future vibes only ✨ go read it, it ate, periodt πŸ’…πŸŒΈ

πŸ“¦ where this page comes from