Lines Matching defs:lcdev
97 static int mt6360_mc_brightness_set(struct led_classdev *lcdev,
100 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev);
113 real_bright = min(lcdev->max_brightness, subled->brightness);
132 static int mt6360_isnk_brightness_set(struct led_classdev *lcdev,
135 struct mt6360_led *led = container_of(lcdev, struct mt6360_led, isnk);
156 static int mt6360_torch_brightness_set(struct led_classdev *lcdev,
160 container_of(lcdev, struct mt6360_led, flash.led_cdev);
174 dev_warn(lcdev->dev, "Please disable strobe first [%d]\n",
239 struct led_classdev *lcdev = &fl_cdev->led_cdev;
253 dev_warn(lcdev->dev, "Please disable torch first [0x%x]\n",
270 dev_err(lcdev->dev, "[%d] control current source %d fail\n",
491 struct led_classdev *lcdev;
494 lcdev = &led->flash.led_cdev;
498 s->val = s->max = s->min + (lcdev->max_brightness - 1) * s->step;
501 strscpy(config->dev_name, lcdev->dev->kobj.name,
616 struct led_classdev *lcdev;
662 lcdev = &led->mc.led_cdev;
663 lcdev->brightness_set_blocking = mt6360_mc_brightness_set;
670 lcdev = &led->isnk;
671 lcdev->brightness_set_blocking = mt6360_isnk_brightness_set;
683 lcdev->max_brightness = val / step_uA;
686 &lcdev->default_trigger);
695 struct led_classdev *lcdev = &flash->led_cdev;
711 lcdev->max_brightness =
713 lcdev->brightness_set_blocking = mt6360_torch_brightness_set;
714 lcdev->flags |= LED_DEV_CAP_FLASH;