Lines Matching refs:twl
414 struct twl_client *twl; in twl_get_regmap() local
426 twl = &twl_priv->twl_modules[sid]; in twl_get_regmap()
428 return twl->regmap; in twl_get_regmap()
600 struct twl_client *twl; in add_numbered_child() local
608 twl = &twl_priv->twl_modules[sid]; in add_numbered_child()
614 pdev->dev.parent = &twl->client->dev; in add_numbered_child()
647 dev_err(&twl->client->dev, "failed to add device %s\n", name); in add_numbered_child()
741 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_remove() local
743 if (twl->client && twl->client != client) in twl_remove()
744 i2c_unregister_device(twl->client); in twl_remove()
745 twl->client = NULL; in twl_remove()
827 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_probe() local
830 twl->client = client; in twl_probe()
832 twl->client = i2c_new_dummy_device(client->adapter, in twl_probe()
834 if (IS_ERR(twl->client)) { in twl_probe()
837 status = PTR_ERR(twl->client); in twl_probe()
842 twl->regmap = devm_regmap_init_i2c(twl->client, in twl_probe()
844 if (IS_ERR(twl->regmap)) { in twl_probe()
845 status = PTR_ERR(twl->regmap); in twl_probe()