Lines Matching refs:lcdev
52 static int rt4505_torch_brightness_set(struct led_classdev *lcdev, in rt4505_torch_brightness_set() argument
56 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_set()
81 struct led_classdev *lcdev) in rt4505_torch_brightness_get() argument
84 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_get()
92 dev_err(lcdev->dev, "Failed to get LED enable\n"); in rt4505_torch_brightness_get()
104 dev_err(lcdev->dev, "Failed to get LED brightness\n"); in rt4505_torch_brightness_get()
265 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_v4l2_config() local
268 strscpy(config->dev_name, lcdev->dev->kobj.name, in rt4505_init_v4l2_config()
274 s->max = s->val = s->min + (lcdev->max_brightness - 1) * s->step; in rt4505_init_v4l2_config()
294 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_flash_properties() local
306 lcdev->max_brightness = in rt4505_init_flash_properties()
308 lcdev->brightness_set_blocking = rt4505_torch_brightness_set; in rt4505_init_flash_properties()
309 lcdev->brightness_get = rt4505_torch_brightness_get; in rt4505_init_flash_properties()
310 lcdev->flags |= LED_DEV_CAP_FLASH; in rt4505_init_flash_properties()