Lines Matching refs:lcdev
87 static int mt6370_torch_brightness_set(struct led_classdev *lcdev, enum led_brightness level) in mt6370_torch_brightness_set() argument
89 struct mt6370_led *led = to_mt6370_led(lcdev, flash.led_cdev); in mt6370_torch_brightness_set()
105 dev_warn(lcdev->dev, "Please disable strobe first [%d]\n", priv->fled_strobe_used); in mt6370_torch_brightness_set()
199 struct led_classdev *lcdev = &fl_cdev->led_cdev; in mt6370_strobe_set() local
215 dev_warn(lcdev->dev, "Please disable torch first [0x%x]\n", priv->fled_torch_used); in mt6370_strobe_set()
230 dev_err(lcdev->dev, "[%d] control current source %d fail\n", led->led_no, state); in mt6370_strobe_set()
240 dev_err(lcdev->dev, "[%d] Failed to set brightness\n", led->led_no); in mt6370_strobe_set()
376 struct led_classdev *lcdev; in mt6370_init_v4l2_flash_config() local
379 lcdev = &led->flash.led_cdev; in mt6370_init_v4l2_flash_config()
383 s->val = s->max = s->min + (lcdev->max_brightness - 1) * s->step; in mt6370_init_v4l2_flash_config()
386 strscpy(cfg->dev_name, dev_name(lcdev->dev), sizeof(cfg->dev_name)); in mt6370_init_v4l2_flash_config()
439 struct led_classdev *lcdev = &flash->led_cdev; in mt6370_init_flash_properties() local
472 lcdev->max_brightness = (val - MT6370_ITORCH_MIN_uA) / MT6370_ITORCH_STEP_uA + 1; in mt6370_init_flash_properties()
473 lcdev->brightness_set_blocking = mt6370_torch_brightness_set; in mt6370_init_flash_properties()
474 lcdev->flags |= LED_DEV_CAP_FLASH; in mt6370_init_flash_properties()