Lines Matching refs:led_data
66 struct lt3593_led_data *led_data; in lt3593_led_probe() local
75 led_data = devm_kzalloc(dev, sizeof(*led_data), GFP_KERNEL); in lt3593_led_probe()
76 if (!led_data) in lt3593_led_probe()
84 led_data->gpiod = devm_gpiod_get(dev, "lltc,ctrl", 0); in lt3593_led_probe()
85 if (IS_ERR(led_data->gpiod)) in lt3593_led_probe()
86 return PTR_ERR(led_data->gpiod); in lt3593_led_probe()
91 &led_data->cdev.default_trigger); in lt3593_led_probe()
98 led_data->cdev.brightness_set_blocking = lt3593_led_set; in lt3593_led_probe()
99 led_data->cdev.brightness = state ? LED_FULL : LED_OFF; in lt3593_led_probe()
105 ret = devm_led_classdev_register_ext(dev, &led_data->cdev, &init_data); in lt3593_led_probe()
111 led_data->cdev.dev->of_node = dev->of_node; in lt3593_led_probe()
112 platform_set_drvdata(pdev, led_data); in lt3593_led_probe()