STRUCT IS31FL32XX_CHIPDEF(9)
π NAME π
struct is31fl32xx_chipdef β chip-specific attributes.
okay so this is the struct is31fl32xx_chipdef(9) page from the Kernel API Manual, and we're gonna get into every chip-specific attribute together, bestie. π
β¨ SYNOPSIS β¨
the whole struct, no cap:
struct is31fl32xx_chipdef {
u8 channels;
u8 shutdown_reg;
u8 pwm_update_reg;
u8 pwm_update_value;
u8 global_control_reg;
u8 reset_reg;
u8 output_frequency_setting_reg;
u8 pwm_register_base;
bool pwm_registers_reversed;
u8 led_control_register_base;
u8 enable_bits_per_led_control_register;
u16 brightness_steps;
int (*reset_func)(struct is31fl32xx_priv *priv);
int (*sw_shutdown_func)(struct is31fl32xx_priv *priv, bool enable);
};
π Members π
channelsβ Number of LED channelsshutdown_regβ address of Shutdown register (optional)pwm_update_regβ address of PWM Update registerpwm_update_valueβ value to write to PWM Update registerglobal_control_regβ address of Global Control register (optional)reset_regβ address of Reset register (optional)output_frequency_setting_regβ address of output frequency register (optional)pwm_register_baseβ address of first PWM registerpwm_registers_reversedβ: trueif PWM registers count down instead of up πled_control_register_baseβ address of first LED control register (optional)enable_bits_per_led_control_registerβ number of LEDs enable bits in eachbrightness_stepsβ number of brightness steps supported by the chipreset_funcβ pointer to reset functionsw_shutdown_funcβ pointer to software shutdown function
π Description π
For all optional register addresses, the sentinel value IS31FL32XX_REG_NONE means this chip has no such register. π«Ά
If reset_func is non-NULL, it will be called during probing to set all necessary registers to a known initialization state. This is needed for chips that do not have a reset_reg.
bestie, this is a hard requirement, not a suggestion:enable_bits_per_led_control_registermust be>=1ifled_control_register_base != IS31FL32XX_REG_NONE. π
π SEE ALSO π
- Kernel file
./drivers/leds/leds-is31fl32xx.c
mwah π β source/version ./drivers/leds, date October 2026, page struct is31fl32xx_chipdef(9).
π¦ 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