Lines Matching refs:led_dev
106 struct led_classdev led_dev; member
198 dev_err(drvdata->led_dev.dev, "Failed to enable vin:%d\n", ret); in lm3530_led_enable()
215 dev_err(drvdata->led_dev.dev, "Failed to disable vin:%d\n", in lm3530_led_disable()
263 if (brightness > drvdata->led_dev.max_brightness) in lm3530_init_registers()
264 brightness = drvdata->led_dev.max_brightness; in lm3530_init_registers()
291 drvdata->led_dev.max_brightness); in lm3530_init_registers()
309 container_of(led_cdev, struct lm3530_data, led_dev); in lm3530_brightness_set()
356 drvdata = container_of(led_cdev, struct lm3530_data, led_dev); in mode_show()
377 drvdata = container_of(led_cdev, struct lm3530_data, led_dev); in mode_store()
440 drvdata->led_dev.name = LM3530_LED_DEV; in lm3530_probe()
441 drvdata->led_dev.brightness_set = lm3530_brightness_set; in lm3530_probe()
442 drvdata->led_dev.max_brightness = MAX_BRIGHTNESS; in lm3530_probe()
443 drvdata->led_dev.groups = lm3530_groups; in lm3530_probe()
463 err = led_classdev_register(&client->dev, &drvdata->led_dev); in lm3530_probe()
477 led_classdev_unregister(&drvdata->led_dev); in lm3530_remove()