Lines Matching refs:dev
219 struct device *dev = &led->pdev->dev; in aat1290_led_parse_dt() local
226 led->gpio_fl_en = devm_gpiod_get(dev, "flen", GPIOD_ASIS); in aat1290_led_parse_dt()
229 dev_err(dev, "Unable to claim gpio \"flen\".\n"); in aat1290_led_parse_dt()
233 led->gpio_en_set = devm_gpiod_get(dev, "enset", GPIOD_ASIS); in aat1290_led_parse_dt()
236 dev_err(dev, "Unable to claim gpio \"enset\".\n"); in aat1290_led_parse_dt()
241 pinctrl = devm_pinctrl_get_select_default(&led->pdev->dev); in aat1290_led_parse_dt()
244 dev_info(dev, in aat1290_led_parse_dt()
251 child_node = of_get_next_available_child(dev_of_node(dev), NULL); in aat1290_led_parse_dt()
253 dev_err(dev, "No DT child node found for connected LED.\n"); in aat1290_led_parse_dt()
264 dev_warn(dev, in aat1290_led_parse_dt()
270 dev_err(dev, in aat1290_led_parse_dt()
278 dev_err(dev, in aat1290_led_parse_dt()
318 led->mm_current_scale = devm_kzalloc(&led->pdev->dev, in init_mm_current_scale()
352 devm_kfree(&led->pdev->dev, led->mm_current_scale); in aat1290_led_get_configuration()
411 pinctrl = devm_pinctrl_get_select(&led->pdev->dev, in aat1290_led_external_strobe_set()
414 dev_warn(&led->pdev->dev, "Unable to switch strobe source.\n"); in aat1290_led_external_strobe_set()
428 strscpy(v4l2_sd_cfg->dev_name, led_cdev->dev->kobj.name, in aat1290_init_v4l2_flash_config()
461 struct device *dev = &pdev->dev; in aat1290_led_probe() local
471 led = devm_kzalloc(dev, sizeof(*led), GFP_KERNEL); in aat1290_led_probe()
499 ret = led_classdev_flash_register_ext(&pdev->dev, fled_cdev, in aat1290_led_probe()
507 led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), in aat1290_led_probe()