Searched refs:sub_led (Results 1 – 3 of 3) 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 …]
634 struct mc_subled *sub_led; in mt6360_init_isnk_properties() local636 sub_led = devm_kzalloc(priv->dev, in mt6360_init_isnk_properties()637 sizeof(*sub_led) * MULTICOLOR_NUM_CHANNELS, GFP_KERNEL); in mt6360_init_isnk_properties()638 if (!sub_led) in mt6360_init_isnk_properties()661 sub_led[num_color].color_index = color; in mt6360_init_isnk_properties()662 sub_led[num_color].channel = reg; in mt6360_init_isnk_properties()673 led->mc.subled_info = sub_led; in mt6360_init_isnk_properties()
718 struct mc_subled *sub_led; in mt6370_assign_multicolor_info() local722 sub_led = devm_kcalloc(dev, MC_CHANNEL_NUM, sizeof(*sub_led), GFP_KERNEL); in mt6370_assign_multicolor_info()723 if (!sub_led) in mt6370_assign_multicolor_info()742 sub_led[num_color].color_index = color; in mt6370_assign_multicolor_info()743 sub_led[num_color].channel = reg; in mt6370_assign_multicolor_info()744 sub_led[num_color].intensity = 0; in mt6370_assign_multicolor_info()753 led->mc.subled_info = sub_led; in mt6370_assign_multicolor_info()