bq257xx_set_...ger_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– bq257xx_set_charger_property(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for bq257xx_set_charger_property, and yes the title got squished to bq257xx_set_...ger_property(9) in the header because manpage headers are dramatic like that. anyway. let's get into it 🫢


✨ NAME ✨

bq257xx_set_charger_property β€” Set a power supply property. that's it. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

int bq257xx_set_charger_property (struct power_supply *psy , enum
       power_supply_property prop , const union power_supply_propval *val );

literally the whole signature, no cap. πŸ“Ž


πŸŽ€ ARGUMENTS πŸŽ€

  • psy β€” the power supply device. your main character, the thing we're actually talking to πŸ”Œ
  • prop β€” the power supply property we're setting. which knob are we turning, bestie?
  • val β€” the value we want that property to be. the actual number. the tea β˜•

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this thing do? it handles requests to set power supply properties β€” the big ones being:

  • input current limit
  • constant charge voltage
  • constant charge current

and then it routes the request to the chip-specific implementation. so like, this function is the front desk, and the actual chip-specific code is the specialist in the back office doing the real work. it's giving delegation. it's giving manager energy. iconic honestly πŸ‘‘


🌈 RETURN 🌈

  • returns 0 on success πŸŽ‰
  • returns -EINVAL if the property is not supported πŸ’€
fr fr bestie, if you get -EINVAL back it's not a bug, it's the kernel politely telling you "that property? never heard of her." πŸ™ˆ

⭐ SEE ALSO ⭐

all the little friends in the family β€” the kernel file is ./drivers/power/supply/bq257xx_charger.c, and here's the whole squad:

like. that's the whole group chat. say hi to all of them πŸ§šπŸ’œ


and that's the page!! sign-off time πŸŽ€βœ¨ this little beauty lives in ./drivers/power/supply, it's dated October 2026, and it's part of the Kernel API Manual β€” the header up top still calls it bq257xx_set_...ger_property(9) because the abbreviation ate the middle of the name and honestly? we respect it. byeee bestie, go set some properties πŸ’…πŸ”₯πŸ“

πŸ“¦ where this page comes from