Lines Matching refs:pmic
110 struct intel_soc_pmic *pmic; in chtdc_ti_probe() local
113 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in chtdc_ti_probe()
114 if (!pmic) in chtdc_ti_probe()
117 i2c_set_clientdata(i2c, pmic); in chtdc_ti_probe()
119 pmic->regmap = devm_regmap_init_i2c(i2c, &chtdc_ti_regmap_config); in chtdc_ti_probe()
120 if (IS_ERR(pmic->regmap)) in chtdc_ti_probe()
121 return PTR_ERR(pmic->regmap); in chtdc_ti_probe()
122 pmic->irq = i2c->irq; in chtdc_ti_probe()
124 ret = devm_regmap_add_irq_chip(dev, pmic->regmap, pmic->irq, in chtdc_ti_probe()
127 &pmic->irq_chip_data); in chtdc_ti_probe()
133 regmap_irq_get_domain(pmic->irq_chip_data)); in chtdc_ti_probe()
138 struct intel_soc_pmic *pmic = i2c_get_clientdata(i2c); in chtdc_ti_shutdown() local
140 disable_irq(pmic->irq); in chtdc_ti_shutdown()
145 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in chtdc_ti_suspend() local
147 disable_irq(pmic->irq); in chtdc_ti_suspend()
154 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in chtdc_ti_resume() local
156 enable_irq(pmic->irq); in chtdc_ti_resume()