Home
last modified time | relevance | path

Searched refs:v4l2_flash (Results 1 – 5 of 5) sorted by relevance

/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-flash-led-class.c20 #define has_flash_op(v4l2_flash, op) \ argument
21 (v4l2_flash && v4l2_flash->ops->op)
23 #define call_flash_op(v4l2_flash, op, arg) \ argument
24 (has_flash_op(v4l2_flash, op) ? \
25 v4l2_flash->ops->op(v4l2_flash, arg) : \
82 static void v4l2_flash_set_led_brightness(struct v4l2_flash *v4l2_flash, in v4l2_flash_set_led_brightness() argument
85 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_set_led_brightness()
88 if (has_flash_op(v4l2_flash, intensity_to_led_brightness)) in v4l2_flash_set_led_brightness()
89 brightness = call_flash_op(v4l2_flash, in v4l2_flash_set_led_brightness()
101 if (has_flash_op(v4l2_flash, led_brightness_to_intensity)) in v4l2_flash_set_led_brightness()
[all …]
/linux-4.4.14/include/media/
Dv4l2-flash-led-class.h20 struct v4l2_flash;
38 int (*external_strobe_set)(struct v4l2_flash *v4l2_flash,
42 (struct v4l2_flash *v4l2_flash, s32 intensity);
45 (struct v4l2_flash *v4l2_flash, enum led_brightness);
79 struct v4l2_flash { struct
89 static inline struct v4l2_flash *v4l2_subdev_to_v4l2_flash( in v4l2_subdev_to_v4l2_flash() argument
92 return container_of(sd, struct v4l2_flash, sd); in v4l2_subdev_to_v4l2_flash()
95 static inline struct v4l2_flash *v4l2_ctrl_to_v4l2_flash(struct v4l2_ctrl *c) in v4l2_ctrl_to_v4l2_flash()
97 return container_of(c->handler, struct v4l2_flash, hdl); in v4l2_ctrl_to_v4l2_flash()
117 struct v4l2_flash *v4l2_flash_init(
[all …]
/linux-4.4.14/drivers/leds/
Dleds-aat1290.c72 struct v4l2_flash *v4l2_flash; member
398 struct v4l2_flash *v4l2_flash, in aat1290_intensity_to_brightness() argument
401 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_intensity_to_brightness()
412 static s32 aat1290_brightness_to_intensity(struct v4l2_flash *v4l2_flash, in aat1290_brightness_to_intensity() argument
415 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_brightness_to_intensity()
421 static int aat1290_led_external_strobe_set(struct v4l2_flash *v4l2_flash, in aat1290_led_external_strobe_set() argument
424 struct aat1290_led *led = fled_cdev_to_led(v4l2_flash->fled_cdev); in aat1290_led_external_strobe_set()
425 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_led_external_strobe_set()
528 led->v4l2_flash = v4l2_flash_init(dev, sub_node, fled_cdev, NULL, in aat1290_led_probe()
530 if (IS_ERR(led->v4l2_flash)) { in aat1290_led_probe()
[all …]
Dleds-max77693.c68 struct v4l2_flash *v4l2_flash; member
857 struct v4l2_flash *v4l2_flash, in max77693_led_external_strobe_set() argument
861 flcdev_to_sub_led(v4l2_flash->fled_cdev); in max77693_led_external_strobe_set()
969 sub_led->v4l2_flash = v4l2_flash_init(dev, sub_node, fled_cdev, NULL, in max77693_register_led()
971 if (IS_ERR(sub_led->v4l2_flash)) { in max77693_register_led()
972 ret = PTR_ERR(sub_led->v4l2_flash); in max77693_register_led()
1049 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); in max77693_led_probe()
1063 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); in max77693_led_remove()
1069 v4l2_flash_release(sub_leds[FLED2].v4l2_flash); in max77693_led_remove()
/linux-4.4.14/Documentation/leds/
Dleds-class-flash.txt61 argument - struct v4l2_flash pointer returned previously by v4l2_flash_init.