Lines Matching refs:panel_mod
228 struct panel_module *panel_mod = to_panel_module(mod); in panel_modeset_init() local
233 encoder = panel_encoder_create(dev, panel_mod); in panel_modeset_init()
237 connector = panel_connector_create(dev, panel_mod, encoder); in panel_modeset_init()
309 struct panel_module *panel_mod; in panel_probe() local
320 panel_mod = devm_kzalloc(&pdev->dev, sizeof(*panel_mod), GFP_KERNEL); in panel_probe()
321 if (!panel_mod) in panel_probe()
327 panel_mod->backlight = backlight; in panel_probe()
329 panel_mod->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in panel_probe()
331 if (IS_ERR(panel_mod->enable_gpio)) { in panel_probe()
332 ret = PTR_ERR(panel_mod->enable_gpio); in panel_probe()
337 if (panel_mod->enable_gpio) in panel_probe()
340 mod = &panel_mod->base; in panel_probe()
349 panel_mod->timings = of_get_display_timings(node); in panel_probe()
350 if (!panel_mod->timings) { in panel_probe()
356 panel_mod->info = of_get_panel_info(node); in panel_probe()
357 if (!panel_mod->info) { in panel_probe()
366 display_timings_release(panel_mod->timings); in panel_probe()
372 if (panel_mod->backlight) in panel_probe()
373 put_device(&panel_mod->backlight->dev); in panel_probe()
380 struct panel_module *panel_mod = to_panel_module(mod); in panel_remove() local
381 struct backlight_device *backlight = panel_mod->backlight; in panel_remove()
386 display_timings_release(panel_mod->timings); in panel_remove()
389 kfree(panel_mod->info); in panel_remove()