Lines Matching +full:led +full:-

1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED Flash class driver for the flash cell of max77693 mfd.
11 #include <linux/led-class-flash.h>
13 #include <linux/mfd/max77693-common.h>
14 #include <linux/mfd/max77693-private.h>
20 #include <media/v4l2-flash-led-class.h>
59 /* corresponding LED Flash class device */
80 /* sub led data */
96 /* bitmask of FLED outputs use state (bit 0. - FLED1, bit 1. - FLED2) */
109 return (ua - FLASH_IOUT_MIN) / FLASH_IOUT_STEP; in max77693_led_iout_to_reg()
114 return (us - FLASH_TIMEOUT_MIN) / FLASH_TIMEOUT_STEP; in max77693_flash_timeout_to_reg()
127 sub_leds[sub_led->fled_id]); in sub_led_to_led()
132 return ((mv - MAX_FLASH1_VSYS_MIN) / MAX_FLASH1_VSYS_STEP) << 2; in max77693_led_vsys_to_reg()
137 return (mv - FLASH_VOUT_MIN) / FLASH_VOUT_STEP + FLASH_VOUT_RMIN; in max77693_led_vout_to_reg()
140 static inline bool max77693_fled_used(struct max77693_led_device *led, in max77693_fled_used() argument
145 return led->fled_mask & fled_bit; in max77693_fled_used()
148 static int max77693_set_mode_reg(struct max77693_led_device *led, u8 mode) in max77693_set_mode_reg() argument
150 struct regmap *rmap = led->regmap; in max77693_set_mode_reg()
163 * camera sensors use torch led to fathom ambient light in max77693_set_mode_reg()
180 static int max77693_add_mode(struct max77693_led_device *led, u8 mode) in max77693_add_mode() argument
185 if (led->iout_joint) in max77693_add_mode()
196 led->mode_flags &= (~MODE_TORCH(i) & ~MODE_FLASH(i)); in max77693_add_mode()
198 new_mode_flags = mode | led->mode_flags; in max77693_add_mode()
199 new_mode_flags &= led->allowed_modes; in max77693_add_mode()
201 if (new_mode_flags ^ led->mode_flags) in max77693_add_mode()
202 led->mode_flags = new_mode_flags; in max77693_add_mode()
206 ret = max77693_set_mode_reg(led, led->mode_flags); in max77693_add_mode()
215 led->mode_flags &= ~mode; in max77693_add_mode()
220 static int max77693_clear_mode(struct max77693_led_device *led, in max77693_clear_mode() argument
223 if (led->iout_joint) in max77693_clear_mode()
227 led->mode_flags &= ~mode; in max77693_clear_mode()
229 return max77693_set_mode_reg(led, led->mode_flags); in max77693_clear_mode()
232 static void max77693_add_allowed_modes(struct max77693_led_device *led, in max77693_add_allowed_modes() argument
236 led->allowed_modes |= (MODE_FLASH(fled_id) | in max77693_add_allowed_modes()
239 led->allowed_modes |= MODE_TORCH(fled_id); in max77693_add_allowed_modes()
242 static void max77693_distribute_currents(struct max77693_led_device *led, in max77693_distribute_currents() argument
246 if (!led->iout_joint) { in max77693_distribute_currents()
248 max77693_add_allowed_modes(led, fled_id, mode); in max77693_distribute_currents()
253 iout[FLED2] = micro_amp - iout[FLED1]; in max77693_distribute_currents()
256 led->allowed_modes &= ~MODE_FLASH_MASK; in max77693_distribute_currents()
258 led->allowed_modes &= ~MODE_TORCH_MASK; in max77693_distribute_currents()
260 max77693_add_allowed_modes(led, FLED1, mode); in max77693_distribute_currents()
263 max77693_add_allowed_modes(led, FLED2, mode); in max77693_distribute_currents()
266 static int max77693_set_torch_current(struct max77693_led_device *led, in max77693_set_torch_current() argument
269 struct regmap *rmap = led->regmap; in max77693_set_torch_current()
273 max77693_distribute_currents(led, fled_id, TORCH, micro_amp, in max77693_set_torch_current()
274 led->iout_torch_max, iout); in max77693_set_torch_current()
276 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_torch_current()
278 led->torch_iout_reg &= TORCH_IOUT_MASK(TORCH_IOUT2_SHIFT); in max77693_set_torch_current()
280 if (fled_id == FLED2 || led->iout_joint) { in max77693_set_torch_current()
282 led->torch_iout_reg &= TORCH_IOUT_MASK(TORCH_IOUT1_SHIFT); in max77693_set_torch_current()
285 led->torch_iout_reg |= ((iout1_reg << TORCH_IOUT1_SHIFT) | in max77693_set_torch_current()
289 led->torch_iout_reg); in max77693_set_torch_current()
292 static int max77693_set_flash_current(struct max77693_led_device *led, in max77693_set_flash_current() argument
296 struct regmap *rmap = led->regmap; in max77693_set_flash_current()
299 int ret = -EINVAL; in max77693_set_flash_current()
301 max77693_distribute_currents(led, fled_id, FLASH, micro_amp, in max77693_set_flash_current()
302 led->iout_flash_max, iout); in max77693_set_flash_current()
304 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_flash_current()
311 if (fled_id == FLED2 || led->iout_joint) { in max77693_set_flash_current()
320 static int max77693_set_timeout(struct max77693_led_device *led, u32 microsec) in max77693_set_timeout() argument
322 struct regmap *rmap = led->regmap; in max77693_set_timeout()
332 led->current_flash_timeout = microsec; in max77693_set_timeout()
337 static int max77693_get_strobe_status(struct max77693_led_device *led, in max77693_get_strobe_status() argument
340 struct regmap *rmap = led->regmap; in max77693_get_strobe_status()
355 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_get_flash_faults() local
356 struct regmap *rmap = led->regmap; in max77693_get_flash_faults()
361 sub_led->flash_faults = 0; in max77693_get_flash_faults()
363 if (led->iout_joint) { in max77693_get_flash_faults()
368 fault_open_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()
371 fault_short_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()
381 sub_led->flash_faults |= LED_FAULT_OVER_VOLTAGE; in max77693_get_flash_faults()
383 sub_led->flash_faults |= LED_FAULT_SHORT_CIRCUIT; in max77693_get_flash_faults()
385 sub_led->flash_faults |= LED_FAULT_OVER_CURRENT; in max77693_get_flash_faults()
390 static int max77693_setup(struct max77693_led_device *led, in max77693_setup() argument
393 struct regmap *rmap = led->regmap; in max77693_setup()
403 if (led->iout_joint) { in max77693_setup()
406 max_flash_curr[FLED1] = led_cfg->iout_flash_max[FLED1] + in max77693_setup()
407 led_cfg->iout_flash_max[FLED2]; in max77693_setup()
409 first_led = max77693_fled_used(led, FLED1) ? FLED1 : FLED2; in max77693_setup()
410 last_led = max77693_fled_used(led, FLED2) ? FLED2 : FLED1; in max77693_setup()
411 max_flash_curr[FLED1] = led_cfg->iout_flash_max[FLED1]; in max77693_setup()
412 max_flash_curr[FLED2] = led_cfg->iout_flash_max[FLED2]; in max77693_setup()
416 ret = max77693_set_flash_current(led, i, in max77693_setup()
427 if (led_cfg->low_vsys > 0) in max77693_setup()
428 v = max77693_led_vsys_to_reg(led_cfg->low_vsys) | in max77693_setup()
440 if (led_cfg->boost_mode == MAX77693_LED_BOOST_FIXED) in max77693_setup()
443 v = led_cfg->boost_mode | led_cfg->boost_mode << 1; in max77693_setup()
445 if (max77693_fled_used(led, FLED1) && max77693_fled_used(led, FLED2)) in max77693_setup()
452 v = max77693_led_vout_to_reg(led_cfg->boost_vout); in max77693_setup()
457 return max77693_set_mode_reg(led, MODE_OFF); in max77693_setup()
460 /* LED subsystem callbacks */
466 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_brightness_set() local
467 int fled_id = sub_led->fled_id, ret; in max77693_led_brightness_set()
469 mutex_lock(&led->lock); in max77693_led_brightness_set()
472 ret = max77693_clear_mode(led, MODE_TORCH(fled_id)); in max77693_led_brightness_set()
474 dev_dbg(&led->pdev->dev, in max77693_led_brightness_set()
480 ret = max77693_set_torch_current(led, fled_id, value * TORCH_IOUT_STEP); in max77693_led_brightness_set()
482 dev_dbg(&led->pdev->dev, in max77693_led_brightness_set()
488 ret = max77693_add_mode(led, MODE_TORCH(fled_id)); in max77693_led_brightness_set()
490 dev_dbg(&led->pdev->dev, in max77693_led_brightness_set()
494 mutex_unlock(&led->lock); in max77693_led_brightness_set()
504 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_flash_brightness_set() local
507 mutex_lock(&led->lock); in max77693_led_flash_brightness_set()
508 ret = max77693_set_flash_current(led, sub_led->fled_id, brightness); in max77693_led_flash_brightness_set()
509 mutex_unlock(&led->lock); in max77693_led_flash_brightness_set()
519 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_flash_strobe_set() local
520 int fled_id = sub_led->fled_id; in max77693_led_flash_strobe_set()
523 mutex_lock(&led->lock); in max77693_led_flash_strobe_set()
526 ret = max77693_clear_mode(led, MODE_FLASH(fled_id)); in max77693_led_flash_strobe_set()
530 if (sub_led->flash_timeout != led->current_flash_timeout) { in max77693_led_flash_strobe_set()
531 ret = max77693_set_timeout(led, sub_led->flash_timeout); in max77693_led_flash_strobe_set()
536 led->strobing_sub_led_id = fled_id; in max77693_led_flash_strobe_set()
538 ret = max77693_add_mode(led, MODE_FLASH(fled_id)); in max77693_led_flash_strobe_set()
545 mutex_unlock(&led->lock); in max77693_led_flash_strobe_set()
555 *fault = sub_led->flash_faults; in max77693_led_flash_fault_get()
565 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_flash_strobe_get() local
569 return -EINVAL; in max77693_led_flash_strobe_get()
571 mutex_lock(&led->lock); in max77693_led_flash_strobe_get()
573 ret = max77693_get_strobe_status(led, state); in max77693_led_flash_strobe_get()
575 *state = !!(*state && (led->strobing_sub_led_id == sub_led->fled_id)); in max77693_led_flash_strobe_get()
577 mutex_unlock(&led->lock); in max77693_led_flash_strobe_get()
587 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_flash_timeout_set() local
589 mutex_lock(&led->lock); in max77693_led_flash_timeout_set()
590 sub_led->flash_timeout = timeout; in max77693_led_flash_timeout_set()
591 mutex_unlock(&led->lock); in max77693_led_flash_timeout_set()
596 static int max77693_led_parse_dt(struct max77693_led_device *led, in max77693_led_parse_dt() argument
600 struct device *dev = &led->pdev->dev; in max77693_led_parse_dt()
601 struct max77693_sub_led *sub_leds = led->sub_leds; in max77693_led_parse_dt()
607 of_property_read_u32(node, "maxim,boost-mode", &cfg->boost_mode); in max77693_led_parse_dt()
608 of_property_read_u32(node, "maxim,boost-mvout", &cfg->boost_vout); in max77693_led_parse_dt()
609 of_property_read_u32(node, "maxim,mvsys-min", &cfg->low_vsys); in max77693_led_parse_dt()
612 prop = of_find_property(child_node, "led-sources", NULL); in max77693_led_parse_dt()
624 "led-sources DT property missing\n"); in max77693_led_parse_dt()
626 return -EINVAL; in max77693_led_parse_dt()
631 led->fled_mask = FLED1_IOUT | FLED2_IOUT; in max77693_led_parse_dt()
634 led->fled_mask |= FLED1_IOUT; in max77693_led_parse_dt()
637 led->fled_mask |= FLED2_IOUT; in max77693_led_parse_dt()
640 "Wrong led-sources DT property value.\n"); in max77693_led_parse_dt()
642 return -EINVAL; in max77693_led_parse_dt()
647 "Conflicting \"led-sources\" DT properties\n"); in max77693_led_parse_dt()
649 return -EINVAL; in max77693_led_parse_dt()
655 cfg->label[fled_id] = in max77693_led_parse_dt()
657 child_node->name; in max77693_led_parse_dt()
659 ret = of_property_read_u32(child_node, "led-max-microamp", in max77693_led_parse_dt()
660 &cfg->iout_torch_max[fled_id]); in max77693_led_parse_dt()
662 cfg->iout_torch_max[fled_id] = TORCH_IOUT_MIN; in max77693_led_parse_dt()
663 dev_warn(dev, "led-max-microamp DT property missing\n"); in max77693_led_parse_dt()
666 ret = of_property_read_u32(child_node, "flash-max-microamp", in max77693_led_parse_dt()
667 &cfg->iout_flash_max[fled_id]); in max77693_led_parse_dt()
669 cfg->iout_flash_max[fled_id] = FLASH_IOUT_MIN; in max77693_led_parse_dt()
671 "flash-max-microamp DT property missing\n"); in max77693_led_parse_dt()
674 ret = of_property_read_u32(child_node, "flash-max-timeout-us", in max77693_led_parse_dt()
675 &cfg->flash_timeout_max[fled_id]); in max77693_led_parse_dt()
677 cfg->flash_timeout_max[fled_id] = FLASH_TIMEOUT_MIN; in max77693_led_parse_dt()
679 "flash-max-timeout-us DT property missing\n"); in max77693_led_parse_dt()
682 if (++cfg->num_leds == 2 || in max77693_led_parse_dt()
683 (max77693_fled_used(led, FLED1) && in max77693_led_parse_dt()
684 max77693_fled_used(led, FLED2))) { in max77693_led_parse_dt()
690 if (cfg->num_leds == 0) { in max77693_led_parse_dt()
691 dev_err(dev, "No DT child node found for connected LED(s).\n"); in max77693_led_parse_dt()
692 return -EINVAL; in max77693_led_parse_dt()
702 *v = (*v - min) / step * step + min; in clamp_align()
705 static void max77693_align_iout_current(struct max77693_led_device *led, in max77693_align_iout_current() argument
710 if (led->iout_joint) { in max77693_align_iout_current()
722 if (max77693_fled_used(led, i)) in max77693_align_iout_current()
728 static void max77693_led_validate_configuration(struct max77693_led_device *led, in max77693_led_validate_configuration() argument
731 u32 flash_iout_max = cfg->boost_mode ? FLASH_IOUT_MAX_2LEDS : in max77693_led_validate_configuration()
735 if (cfg->num_leds == 1 && in max77693_led_validate_configuration()
736 max77693_fled_used(led, FLED1) && max77693_fled_used(led, FLED2)) in max77693_led_validate_configuration()
737 led->iout_joint = true; in max77693_led_validate_configuration()
739 cfg->boost_mode = clamp_val(cfg->boost_mode, MAX77693_LED_BOOST_NONE, in max77693_led_validate_configuration()
743 if ((cfg->boost_mode == MAX77693_LED_BOOST_NONE) && led->iout_joint) in max77693_led_validate_configuration()
744 cfg->boost_mode = MAX77693_LED_BOOST_FIXED; in max77693_led_validate_configuration()
746 max77693_align_iout_current(led, cfg->iout_torch_max, in max77693_led_validate_configuration()
749 max77693_align_iout_current(led, cfg->iout_flash_max, in max77693_led_validate_configuration()
752 for (i = 0; i < ARRAY_SIZE(cfg->flash_timeout_max); ++i) in max77693_led_validate_configuration()
753 clamp_align(&cfg->flash_timeout_max[i], FLASH_TIMEOUT_MIN, in max77693_led_validate_configuration()
756 clamp_align(&cfg->boost_vout, FLASH_VOUT_MIN, FLASH_VOUT_MAX, in max77693_led_validate_configuration()
759 if (cfg->low_vsys) in max77693_led_validate_configuration()
760 clamp_align(&cfg->low_vsys, MAX_FLASH1_VSYS_MIN, in max77693_led_validate_configuration()
764 static int max77693_led_get_configuration(struct max77693_led_device *led, in max77693_led_get_configuration() argument
770 ret = max77693_led_parse_dt(led, cfg, sub_nodes); in max77693_led_get_configuration()
774 max77693_led_validate_configuration(led, cfg); in max77693_led_get_configuration()
776 memcpy(led->iout_torch_max, cfg->iout_torch_max, in max77693_led_get_configuration()
777 sizeof(led->iout_torch_max)); in max77693_led_get_configuration()
778 memcpy(led->iout_flash_max, cfg->iout_flash_max, in max77693_led_get_configuration()
779 sizeof(led->iout_flash_max)); in max77693_led_get_configuration()
795 struct led_classdev_flash *fled_cdev = &sub_led->fled_cdev; in max77693_init_flash_settings()
796 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_init_flash_settings() local
797 int fled_id = sub_led->fled_id; in max77693_init_flash_settings()
801 setting = &fled_cdev->brightness; in max77693_init_flash_settings()
802 setting->min = FLASH_IOUT_MIN; in max77693_init_flash_settings()
803 setting->max = led->iout_joint ? in max77693_init_flash_settings()
804 led_cfg->iout_flash_max[FLED1] + in max77693_init_flash_settings()
805 led_cfg->iout_flash_max[FLED2] : in max77693_init_flash_settings()
806 led_cfg->iout_flash_max[fled_id]; in max77693_init_flash_settings()
807 setting->step = FLASH_IOUT_STEP; in max77693_init_flash_settings()
808 setting->val = setting->max; in max77693_init_flash_settings()
811 setting = &fled_cdev->timeout; in max77693_init_flash_settings()
812 setting->min = FLASH_TIMEOUT_MIN; in max77693_init_flash_settings()
813 setting->max = led_cfg->flash_timeout_max[fled_id]; in max77693_init_flash_settings()
814 setting->step = FLASH_TIMEOUT_STEP; in max77693_init_flash_settings()
815 setting->val = setting->max; in max77693_init_flash_settings()
825 flcdev_to_sub_led(v4l2_flash->fled_cdev); in max77693_led_external_strobe_set()
826 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_led_external_strobe_set() local
827 int fled_id = sub_led->fled_id; in max77693_led_external_strobe_set()
830 mutex_lock(&led->lock); in max77693_led_external_strobe_set()
833 ret = max77693_add_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
835 ret = max77693_clear_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
837 mutex_unlock(&led->lock); in max77693_led_external_strobe_set()
846 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_init_v4l2_flash_config() local
847 struct device *dev = &led->pdev->dev; in max77693_init_v4l2_flash_config()
848 struct max77693_dev *iodev = dev_get_drvdata(dev->parent); in max77693_init_v4l2_flash_config()
849 struct i2c_client *i2c = iodev->i2c; in max77693_init_v4l2_flash_config()
852 snprintf(v4l2_sd_cfg->dev_name, sizeof(v4l2_sd_cfg->dev_name), in max77693_init_v4l2_flash_config()
853 "%s %d-%04x", sub_led->fled_cdev.led_cdev.name, in max77693_init_v4l2_flash_config()
854 i2c_adapter_id(i2c->adapter), i2c->addr); in max77693_init_v4l2_flash_config()
856 s = &v4l2_sd_cfg->intensity; in max77693_init_v4l2_flash_config()
857 s->min = TORCH_IOUT_MIN; in max77693_init_v4l2_flash_config()
858 s->max = sub_led->fled_cdev.led_cdev.max_brightness * TORCH_IOUT_STEP; in max77693_init_v4l2_flash_config()
859 s->step = TORCH_IOUT_STEP; in max77693_init_v4l2_flash_config()
860 s->val = s->max; in max77693_init_v4l2_flash_config()
863 v4l2_sd_cfg->flash_faults = LED_FAULT_OVER_VOLTAGE | in max77693_init_v4l2_flash_config()
867 v4l2_sd_cfg->has_external_strobe = true; in max77693_init_v4l2_flash_config()
886 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_init_fled_cdev() local
887 int fled_id = sub_led->fled_id; in max77693_init_fled_cdev()
891 /* Initialize LED Flash class device */ in max77693_init_fled_cdev()
892 fled_cdev = &sub_led->fled_cdev; in max77693_init_fled_cdev()
893 fled_cdev->ops = &flash_ops; in max77693_init_fled_cdev()
894 led_cdev = &fled_cdev->led_cdev; in max77693_init_fled_cdev()
896 led_cdev->name = led_cfg->label[fled_id]; in max77693_init_fled_cdev()
898 led_cdev->brightness_set_blocking = max77693_led_brightness_set; in max77693_init_fled_cdev()
899 led_cdev->max_brightness = (led->iout_joint ? in max77693_init_fled_cdev()
900 led_cfg->iout_torch_max[FLED1] + in max77693_init_fled_cdev()
901 led_cfg->iout_torch_max[FLED2] : in max77693_init_fled_cdev()
902 led_cfg->iout_torch_max[fled_id]) / in max77693_init_fled_cdev()
904 led_cdev->flags |= LED_DEV_CAP_FLASH; in max77693_init_fled_cdev()
909 sub_led->flash_timeout = fled_cdev->timeout.val; in max77693_init_fled_cdev()
916 struct max77693_led_device *led = sub_led_to_led(sub_led); in max77693_register_led() local
917 struct led_classdev_flash *fled_cdev = &sub_led->fled_cdev; in max77693_register_led()
918 struct device *dev = &led->pdev->dev; in max77693_register_led()
922 /* Register in the LED subsystem */ in max77693_register_led()
930 sub_led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), in max77693_register_led()
933 if (IS_ERR(sub_led->v4l2_flash)) { in max77693_register_led()
934 ret = PTR_ERR(sub_led->v4l2_flash); in max77693_register_led()
947 struct device *dev = &pdev->dev; in max77693_led_probe()
948 struct max77693_dev *iodev = dev_get_drvdata(dev->parent); in max77693_led_probe()
949 struct max77693_led_device *led; in max77693_led_probe() local
955 led = devm_kzalloc(dev, sizeof(*led), GFP_KERNEL); in max77693_led_probe()
956 if (!led) in max77693_led_probe()
957 return -ENOMEM; in max77693_led_probe()
959 led->pdev = pdev; in max77693_led_probe()
960 led->regmap = iodev->regmap; in max77693_led_probe()
961 led->allowed_modes = MODE_FLASH_MASK; in max77693_led_probe()
962 sub_leds = led->sub_leds; in max77693_led_probe()
964 platform_set_drvdata(pdev, led); in max77693_led_probe()
965 ret = max77693_led_get_configuration(led, &led_cfg, sub_nodes); in max77693_led_probe()
969 ret = max77693_setup(led, &led_cfg); in max77693_led_probe()
973 mutex_init(&led->lock); in max77693_led_probe()
976 led->iout_joint || max77693_fled_used(led, FLED1); in max77693_led_probe()
978 !led->iout_joint && max77693_fled_used(led, FLED2); in max77693_led_probe()
984 /* Initialize LED Flash class device */ in max77693_led_probe()
988 * Register LED Flash class device and corresponding in max77693_led_probe()
1014 mutex_destroy(&led->lock); in max77693_led_probe()
1021 struct max77693_led_device *led = platform_get_drvdata(pdev); in max77693_led_remove() local
1022 struct max77693_sub_led *sub_leds = led->sub_leds; in max77693_led_remove()
1024 if (led->iout_joint || max77693_fled_used(led, FLED1)) { in max77693_led_remove()
1029 if (!led->iout_joint && max77693_fled_used(led, FLED2)) { in max77693_led_remove()
1034 mutex_destroy(&led->lock); in max77693_led_remove()
1040 { .compatible = "maxim,max77693-led" },
1049 .name = "max77693-led",
1058 MODULE_DESCRIPTION("Maxim MAX77693 led flash driver");