Lines Matching refs:twl
424 struct twl_client *twl; in twl_get_regmap() local
436 twl = &twl_priv->twl_modules[sid]; in twl_get_regmap()
438 return twl->regmap; in twl_get_regmap()
686 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_remove() local
688 if (twl->client && twl->client != client) in twl_remove()
689 i2c_unregister_device(twl->client); in twl_remove()
690 twl->client = NULL; in twl_remove()
787 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_probe() local
790 twl->client = client; in twl_probe()
792 twl->client = i2c_new_dummy_device(client->adapter, in twl_probe()
794 if (IS_ERR(twl->client)) { in twl_probe()
797 status = PTR_ERR(twl->client); in twl_probe()
802 twl->regmap = devm_regmap_init_i2c(twl->client, in twl_probe()
804 if (IS_ERR(twl->regmap)) { in twl_probe()
805 status = PTR_ERR(twl->regmap); in twl_probe()