Lines Matching refs:tfp410_mod
280 struct tfp410_module *tfp410_mod = to_tfp410_module(mod); in tfp410_modeset_init() local
285 encoder = tfp410_encoder_create(dev, tfp410_mod); in tfp410_modeset_init()
289 connector = tfp410_connector_create(dev, tfp410_mod, encoder); in tfp410_modeset_init()
313 struct tfp410_module *tfp410_mod; in tfp410_probe() local
325 tfp410_mod = kzalloc(sizeof(*tfp410_mod), GFP_KERNEL); in tfp410_probe()
326 if (!tfp410_mod) in tfp410_probe()
329 mod = &tfp410_mod->base; in tfp410_probe()
351 tfp410_mod->i2c = of_find_i2c_adapter_by_node(i2c_node); in tfp410_probe()
352 if (!tfp410_mod->i2c) { in tfp410_probe()
360 tfp410_mod->gpio = of_get_named_gpio_flags(node, "powerdn-gpio", in tfp410_probe()
362 if (IS_ERR_VALUE(tfp410_mod->gpio)) { in tfp410_probe()
365 ret = gpio_request(tfp410_mod->gpio, "DVI_PDn"); in tfp410_probe()
375 i2c_put_adapter(tfp410_mod->i2c); in tfp410_probe()
378 kfree(tfp410_mod); in tfp410_probe()
386 struct tfp410_module *tfp410_mod = to_tfp410_module(mod); in tfp410_remove() local
388 i2c_put_adapter(tfp410_mod->i2c); in tfp410_remove()
389 gpio_free(tfp410_mod->gpio); in tfp410_remove()
392 kfree(tfp410_mod); in tfp410_remove()