Searched refs:led_mc_cdev (Results 1 – 1 of 1) sorted by relevance
50 struct led_classdev_mc led_mc_cdev; member57 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() argument169 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()[all …]