Searched refs:sub_led (Results 1 – 2 of 2) sorted by relevance
124 struct max77693_sub_led *sub_led) in sub_led_to_led() argument126 return container_of(sub_led, struct max77693_led_device, in sub_led_to_led()127 sub_leds[sub_led->fled_id]); in sub_led_to_led()353 static int max77693_get_flash_faults(struct max77693_sub_led *sub_led) in max77693_get_flash_faults() argument355 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_get_flash_faults()361 sub_led->flash_faults = 0; in max77693_get_flash_faults()368 fault_open_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()371 fault_short_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()381 sub_led->flash_faults |= LED_FAULT_OVER_VOLTAGE; in max77693_get_flash_faults()383 sub_led->flash_faults |= LED_FAULT_SHORT_CIRCUIT; in max77693_get_flash_faults()[all …]
628 struct mc_subled *sub_led; in mt6360_init_isnk_properties() local630 sub_led = devm_kzalloc(priv->dev, in mt6360_init_isnk_properties()631 sizeof(*sub_led) * MULTICOLOR_NUM_CHANNELS, GFP_KERNEL); in mt6360_init_isnk_properties()632 if (!sub_led) in mt6360_init_isnk_properties()652 sub_led[num_color].color_index = color; in mt6360_init_isnk_properties()653 sub_led[num_color].channel = reg; in mt6360_init_isnk_properties()664 led->mc.subled_info = sub_led; in mt6360_init_isnk_properties()