Lines Matching refs:pmic
176 struct intel_soc_pmic *pmic; in cht_wc_probe() local
190 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in cht_wc_probe()
191 if (!pmic) in cht_wc_probe()
196 pmic->cht_wc_model = (long)id->driver_data; in cht_wc_probe()
198 pmic->irq = client->irq; in cht_wc_probe()
199 pmic->dev = dev; in cht_wc_probe()
200 i2c_set_clientdata(client, pmic); in cht_wc_probe()
202 pmic->regmap = devm_regmap_init(dev, NULL, client, &cht_wc_regmap_cfg); in cht_wc_probe()
203 if (IS_ERR(pmic->regmap)) in cht_wc_probe()
204 return PTR_ERR(pmic->regmap); in cht_wc_probe()
206 ret = devm_regmap_add_irq_chip(dev, pmic->regmap, pmic->irq, in cht_wc_probe()
209 &pmic->irq_chip_data); in cht_wc_probe()
215 regmap_irq_get_domain(pmic->irq_chip_data)); in cht_wc_probe()
220 struct intel_soc_pmic *pmic = i2c_get_clientdata(client); in cht_wc_shutdown() local
222 disable_irq(pmic->irq); in cht_wc_shutdown()
227 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in cht_wc_suspend() local
229 disable_irq(pmic->irq); in cht_wc_suspend()
236 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in cht_wc_resume() local
238 enable_irq(pmic->irq); in cht_wc_resume()