ENUM TPS6105X_MODE(9)
π 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.hstructtps6105x_platform_data(9), structtps6105x(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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms