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
319 panel_mod = devm_kzalloc(&pdev->dev, sizeof(*panel_mod), GFP_KERNEL); in panel_probe()
320 if (!panel_mod) in panel_probe()
326 panel_mod->backlight = backlight; in panel_probe()
328 panel_mod->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in panel_probe()
330 if (IS_ERR(panel_mod->enable_gpio)) { in panel_probe()
331 ret = PTR_ERR(panel_mod->enable_gpio); in panel_probe()
336 if (panel_mod->enable_gpio) in panel_probe()
339 mod = &panel_mod->base; in panel_probe()
348 panel_mod->timings = of_get_display_timings(node); in panel_probe()
349 if (!panel_mod->timings) { in panel_probe()
355 panel_mod->info = of_get_panel_info(node); in panel_probe()
356 if (!panel_mod->info) { in panel_probe()
365 display_timings_release(panel_mod->timings); in panel_probe()
371 if (panel_mod->backlight) in panel_probe()
372 put_device(&panel_mod->backlight->dev); in panel_probe()
379 struct panel_module *panel_mod = to_panel_module(mod); in panel_remove() local
380 struct backlight_device *backlight = panel_mod->backlight; in panel_remove()
385 display_timings_release(panel_mod->timings); in panel_remove()
388 kfree(panel_mod->info); in panel_remove()