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()
1051 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_remove() local
1053 if (twl->client && twl->client != client) in twl_remove()
1054 i2c_unregister_device(twl->client); in twl_remove()
1055 twl->client = NULL; in twl_remove()
1139 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_probe() local
1142 twl->client = client; in twl_probe()
1144 twl->client = i2c_new_dummy_device(client->adapter, in twl_probe()
1146 if (IS_ERR(twl->client)) { in twl_probe()
1149 status = PTR_ERR(twl->client); in twl_probe()
1154 twl->regmap = devm_regmap_init_i2c(twl->client, in twl_probe()
1156 if (IS_ERR(twl->regmap)) { in twl_probe()
1157 status = PTR_ERR(twl->regmap); in twl_probe()