Lines Matching refs:twl
428 struct twl_client *twl; in twl_get_regmap() local
440 twl = &twl_priv->twl_modules[sid]; in twl_get_regmap()
442 return twl->regmap; in twl_get_regmap()
614 struct twl_client *twl; in add_numbered_child() local
622 twl = &twl_priv->twl_modules[sid]; in add_numbered_child()
626 dev_dbg(&twl->client->dev, "can't alloc dev\n"); in add_numbered_child()
631 pdev->dev.parent = &twl->client->dev; in add_numbered_child()
661 dev_err(&twl->client->dev, "can't add %s dev\n", name); in add_numbered_child()
1067 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_remove() local
1069 if (twl->client && twl->client != client) in twl_remove()
1070 i2c_unregister_device(twl->client); in twl_remove()
1071 twl->client = NULL; in twl_remove()
1154 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_probe() local
1157 twl->client = client; in twl_probe()
1159 twl->client = i2c_new_dummy(client->adapter, in twl_probe()
1161 if (!twl->client) { in twl_probe()
1169 twl->regmap = devm_regmap_init_i2c(twl->client, in twl_probe()
1171 if (IS_ERR(twl->regmap)) { in twl_probe()
1172 status = PTR_ERR(twl->regmap); in twl_probe()