STRUCT MAX8997_LED_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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] for MAX8997_FLASH_MODE and MAX8997_FLASH_PIN_CONTROL_MODE
    • [0 - 15] for MAX8997_MOVIE_MODE and MAX8997_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