Lines Matching refs:pmic
184 struct intel_soc_pmic *pmic; in cht_wc_probe() local
198 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in cht_wc_probe()
199 if (!pmic) in cht_wc_probe()
204 pmic->cht_wc_model = (long)id->driver_data; in cht_wc_probe()
206 pmic->irq = client->irq; in cht_wc_probe()
207 pmic->dev = dev; in cht_wc_probe()
208 i2c_set_clientdata(client, pmic); in cht_wc_probe()
210 pmic->regmap = devm_regmap_init(dev, NULL, client, &cht_wc_regmap_cfg); in cht_wc_probe()
211 if (IS_ERR(pmic->regmap)) in cht_wc_probe()
212 return PTR_ERR(pmic->regmap); in cht_wc_probe()
214 ret = devm_regmap_add_irq_chip(dev, pmic->regmap, pmic->irq, in cht_wc_probe()
217 &pmic->irq_chip_data); in cht_wc_probe()
223 regmap_irq_get_domain(pmic->irq_chip_data)); in cht_wc_probe()
228 struct intel_soc_pmic *pmic = i2c_get_clientdata(client); in cht_wc_shutdown() local
230 disable_irq(pmic->irq); in cht_wc_shutdown()
235 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in cht_wc_suspend() local
237 disable_irq(pmic->irq); in cht_wc_suspend()
244 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in cht_wc_resume() local
246 enable_irq(pmic->irq); in cht_wc_resume()