Lines Matching defs:cdev
99 struct led_classdev cdev;
109 int (*brightness_set)(struct led_classdev *cdev, enum led_brightness brightness);
192 static int is31fl3190_brightness_set(struct led_classdev *cdev,
195 struct is31fl319x_led *led = container_of(cdev, struct is31fl319x_led, cdev);
217 * since neither cdev nor the chip can provide
246 static int is31fl3196_brightness_set(struct led_classdev *cdev,
249 struct is31fl319x_led *led = container_of(cdev, struct is31fl319x_led, cdev);
271 * since neither cdev nor the chip can provide
371 struct led_classdev *cdev = &led->cdev;
374 if (fwnode_property_read_string(child, "label", &cdev->name))
375 cdev->name = fwnode_get_name(child);
377 ret = fwnode_property_read_string(child, "linux,default-trigger", &cdev->default_trigger);
571 led->cdev.brightness_set_blocking = is31->cdef->brightness_set;
573 err = devm_led_classdev_register(&client->dev, &led->cdev);