Lines Matching refs:led_cdev
55 static inline struct cros_ec_led_priv *cros_ec_led_cdev_to_priv(struct led_classdev *led_cdev) in cros_ec_led_cdev_to_priv() argument
57 return container_of(lcdev_to_mccdev(led_cdev), struct cros_ec_led_priv, led_mc_cdev); in cros_ec_led_cdev_to_priv()
91 static int cros_ec_led_trigger_activate(struct led_classdev *led_cdev) in cros_ec_led_trigger_activate() argument
93 struct cros_ec_led_priv *priv = cros_ec_led_cdev_to_priv(led_cdev); in cros_ec_led_trigger_activate()
110 static int cros_ec_led_brightness_set_blocking(struct led_classdev *led_cdev, in cros_ec_led_brightness_set_blocking() argument
113 struct cros_ec_led_priv *priv = cros_ec_led_cdev_to_priv(led_cdev); in cros_ec_led_brightness_set_blocking()
182 struct led_classdev *led_cdev; in cros_ec_led_probe_one() local
202 &priv->led_mc_cdev.led_cdev.max_brightness); in cros_ec_led_probe_one()
227 led_cdev = &priv->led_mc_cdev.led_cdev; in cros_ec_led_probe_one()
228 led_cdev->brightness_set_blocking = cros_ec_led_brightness_set_blocking; in cros_ec_led_probe_one()
229 led_cdev->trigger_type = &cros_ec_led_trigger_type; in cros_ec_led_probe_one()
230 led_cdev->default_trigger = cros_ec_led_trigger.name; in cros_ec_led_probe_one()
231 led_cdev->hw_control_trigger = cros_ec_led_trigger.name; in cros_ec_led_probe_one()
233 led_cdev->name = devm_kasprintf(dev, GFP_KERNEL, "chromeos:%s:%s", in cros_ec_led_probe_one()
236 if (!led_cdev->name) in cros_ec_led_probe_one()