Searched refs:mc_led_info (Results 1 – 3 of 3) sorted by relevance
682 struct mc_subled *mc_led_info; in register_multicolor() local691 mc_led_info = devm_kcalloc(&client->dev, NUM_LEDS, sizeof(*mc_led_info), in register_multicolor()693 if (!mc_led_info) in register_multicolor()696 mc_led_info[RED].color_index = LED_COLOR_ID_RED; in register_multicolor()697 mc_led_info[GREEN].color_index = LED_COLOR_ID_GREEN; in register_multicolor()698 mc_led_info[BLUE].color_index = LED_COLOR_ID_BLUE; in register_multicolor()700 mc_led->cdev.mcled_cdev.subled_info = mc_led_info; in register_multicolor()
464 struct mc_subled *mc_led_info; in lp55xx_init_led() local487 mc_led_info = devm_kcalloc(dev, in lp55xx_init_led()489 sizeof(*mc_led_info), GFP_KERNEL); in lp55xx_init_led()490 if (!mc_led_info) in lp55xx_init_led()498 mc_led_info[i].color_index = in lp55xx_init_led()500 mc_led_info[i].channel = in lp55xx_init_led()504 led->mc_cdev.subled_info = mc_led_info; in lp55xx_init_led()
822 struct mc_subled *mc_led_info; in ps_lightbar_register() local826 mc_led_info = devm_kmalloc_array(&hdev->dev, 3, sizeof(*mc_led_info), in ps_lightbar_register()828 if (!mc_led_info) in ps_lightbar_register()831 mc_led_info[0].color_index = LED_COLOR_ID_RED; in ps_lightbar_register()832 mc_led_info[1].color_index = LED_COLOR_ID_GREEN; in ps_lightbar_register()833 mc_led_info[2].color_index = LED_COLOR_ID_BLUE; in ps_lightbar_register()835 lightbar_mc_dev->subled_info = mc_led_info; in ps_lightbar_register()