Lines Matching refs:led_mc_cdev
50 struct led_classdev_mc led_mc_cdev; member
57 return container_of(lcdev_to_mccdev(led_cdev), struct cros_ec_led_priv, led_mc_cdev); in cros_ec_led_cdev_to_priv()
119 led_mc_calc_color_components(&priv->led_mc_cdev, brightness); in cros_ec_led_brightness_set_blocking()
123 for (i = 0; i < priv->led_mc_cdev.num_colors; i++) { in cros_ec_led_brightness_set_blocking()
124 subled = &priv->led_mc_cdev.subled_info[i]; in cros_ec_led_brightness_set_blocking()
165 static const char *cros_ec_led_get_color_name(struct led_classdev_mc *led_mc_cdev) in cros_ec_led_get_color_name() argument
169 if (led_mc_cdev->num_colors == 1) in cros_ec_led_get_color_name()
170 color = led_mc_cdev->subled_info[0].color_index; in cros_ec_led_get_color_name()
202 &priv->led_mc_cdev.led_cdev.max_brightness); in cros_ec_led_probe_one()
224 priv->led_mc_cdev.subled_info = subleds; in cros_ec_led_probe_one()
225 priv->led_mc_cdev.num_colors = num_subleds; in cros_ec_led_probe_one()
227 led_cdev = &priv->led_mc_cdev.led_cdev; in cros_ec_led_probe_one()
234 cros_ec_led_get_color_name(&priv->led_mc_cdev), in cros_ec_led_probe_one()
239 return devm_led_classdev_multicolor_register(dev, &priv->led_mc_cdev); in cros_ec_led_probe_one()