bq25792_get_iindpm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– bq25792_get_iindpm β€” Get the maximum set input current πŸ’–

okay so this is a page from the Kernel API Manual, bestie β€” we're deep in the charger driver trenches and honestly it's giving main character energy ✨


🌸 NAME 🌸

bq25792_get_iindpm β€” literally just: get the maximum set input current. that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

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

πŸŽ€ ARGUMENTS πŸŽ€

  • pdata β€” the driver platform data. yep, the usual struct, she's carrying everything 🫢
  • intval β€” pointer to store the maximum input current value. so like, you hand her a spot in memory and she fills it in πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

Read the current input current limit from the device.

that's it. that's the whole function. she reads the current input current limit off the chip and it's lowkey iconic how simple that is 😭


⭐ RETURN ⭐

Returns 0 on success or error on failure to read value. so like, check it, bestie β€” don't just assume it ate πŸ™ˆ


🌈 SEE ALSO 🌈

Kernel file ./drivers/power/supply/bq257xx_charger.c

like, that's the whole friend group right there β€” go read them too, iykyk πŸ‘‘


mwah πŸ’‹ this lil page lives in ./drivers/power/supply, dated October 2026, and it's part of the Kernel API Manual β€” periodt, that's the sign-off, go touch grass (or a charger) 🌸✨

πŸ“¦ where this page comes from