STRUCT MAX8997_LED_PLATFORM_DATA(9)
πΈ NAME πΈ
struct max8997_led_platform_data β okay bestie, this is the struct that holds all the deets for your MAX8997 LED setup, and the NAME section literally just gives you the name and nothing else π
(iconic minimalism, honestly)
β¨ SYNOPSIS β¨
Here's the whole vibe, copy it exactly fr fr:
struct max8997_led_platform_data {
enum max8997_led_mode mode[2];
u8 brightness[2];
};
π Members π
modeβ the LED mode for each LED device, one per device, no cap πbrightnessβ the initial brightness for each LED device π₯ and the ranges are super specific, so listen up:[0 - 31]forMAX8997_FLASH_MODEandMAX8997_FLASH_PIN_CONTROL_MODE[0 - 15]forMAX8997_MOVIE_MODEandMAX8997_MOVIE_PIN_CONTROL_MODE
lowkey important: the two range groups are tied to those specific modes, so don't go mixing them up bestie π
π¦ Description π¦
The number of LED devices for MAX8997 is two. That's it, that's the whole description β two LEDs, periodt. βοΈ
π SEE ALSO π
- Kernel file
./include/linux/mfd/max8997.hπ struct max8997_muic_platform_data(9)β go read that one next, bestie π«Ά
Source file ./include/linux/mfd, dated October 2026 β mwah, that's the whole page, go slay your LED config β¨ππ
π¦ 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