ENUM TPS6105X_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum tps6105x_mode

okay so bestie, welcome to the Kernel API Manual ✨ β€” this little page is all about enum tps6105x_mode, which is, and I cannot stress this enough, just the enum that says what you want the TPS6105x to be doing. that's it. that's the whole vibe. πŸŽ€


🌸 NAME

enum tps6105x_mode β€” the desired mode for the TPS6105x πŸ’–


✨ SYNOPSIS

here's the whole enum, copied exactly, no cap:

enum tps6105x_mode {
    TPS6105X_MODE_SHUTDOWN ,
    TPS6105X_MODE_TORCH ,
    TPS6105X_MODE_TORCH_FLASH ,
    TPS6105X_MODE_VOLTAGE

};

like, she's short. she's iconic. she gets straight to the point. πŸ‘‘


πŸ¦‹ Constants

okay so these are the four moods your TPS6105x can be in, and you will be picking one:

  • TPS6105X_MODE_SHUTDOWN β€” this instance is inactive and not used for anything 😴 she's literally just vibing in the void, contributing nothing, and honestly? relatable.
  • TPS6105X_MODE_TORCH β€” this instance is used as a LED, usually a while LED, for example as a backlight or flashlight πŸ”† if you set this one, the TPS6105X will register to the LED framework. so she joins the LED friend group. slay.
  • TPS6105X_MODE_TORCH_FLASH β€” this instance is used as a flashgun, usually in a camera πŸ“Έ main character energy fr, she exists to go flash and then leave.
  • TPS6105X_MODE_VOLTAGE β€” this instance is used as a voltage regulator and will register to the regulator framework ⚑ she's the responsible one now, holding the voltage steady, no drama.

πŸ’œ SEE ALSO

  • Kernel file ./include/linux/mfd/tps6105x.h struct tps6105x_platform_data(9), struct tps6105x(9)
ngl if you're messing with this enum you're probably gonna want those two structs open in another tab. iykyk 🫢

and that's the whole thing bestie!! πŸ“ this page came from ./include/linux/mfd, dated October 2026, and it's part of the Kernel API Manual β€” go forth and pick your mode wisely, mwah πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from