Lines Matching refs:panel_mod
227 struct panel_module *panel_mod = to_panel_module(mod); in panel_modeset_init() local
232 encoder = panel_encoder_create(dev, panel_mod); in panel_modeset_init()
236 connector = panel_connector_create(dev, panel_mod, encoder); in panel_modeset_init()
308 struct panel_module *panel_mod; in panel_probe() local
318 panel_mod = devm_kzalloc(&pdev->dev, sizeof(*panel_mod), GFP_KERNEL); in panel_probe()
319 if (!panel_mod) in panel_probe()
325 panel_mod->backlight = backlight; in panel_probe()
327 panel_mod->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in panel_probe()
329 if (IS_ERR(panel_mod->enable_gpio)) { in panel_probe()
330 ret = PTR_ERR(panel_mod->enable_gpio); in panel_probe()
335 if (panel_mod->enable_gpio) in panel_probe()
338 mod = &panel_mod->base; in panel_probe()
343 panel_mod->timings = of_get_display_timings(node); in panel_probe()
344 if (!panel_mod->timings) { in panel_probe()
350 panel_mod->info = of_get_panel_info(node); in panel_probe()
351 if (!panel_mod->info) { in panel_probe()
360 display_timings_release(panel_mod->timings); in panel_probe()
366 if (panel_mod->backlight) in panel_probe()
367 put_device(&panel_mod->backlight->dev); in panel_probe()
374 struct panel_module *panel_mod = to_panel_module(mod); in panel_remove() local
375 struct backlight_device *backlight = panel_mod->backlight; in panel_remove()
380 display_timings_release(panel_mod->timings); in panel_remove()
383 kfree(panel_mod->info); in panel_remove()