Lines Matching defs:on
53 /* Flash mode, light on with strobe, duration from timer */
59 /* Torch mode, light immediately on, duration indefinite */
296 __adp1653_set_power(struct adp1653_flash *flash, int on)
301 ret = flash->platform_data->power(&flash->subdev, on);
305 gpiod_set_value(flash->platform_data->enable_gpio, on);
306 if (on)
311 if (!on)
327 adp1653_set_power(struct v4l2_subdev *subdev, int on)
337 if (flash->power_count == !on) {
338 ret = __adp1653_set_power(flash, !!on);
344 flash->power_count += on ? 1 : -1;