Lines Matching refs:pmic
113 struct intel_soc_pmic *pmic; in chtdc_ti_probe() local
116 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in chtdc_ti_probe()
117 if (!pmic) in chtdc_ti_probe()
120 i2c_set_clientdata(i2c, pmic); in chtdc_ti_probe()
122 pmic->regmap = devm_regmap_init_i2c(i2c, &chtdc_ti_regmap_config); in chtdc_ti_probe()
123 if (IS_ERR(pmic->regmap)) in chtdc_ti_probe()
124 return PTR_ERR(pmic->regmap); in chtdc_ti_probe()
125 pmic->irq = i2c->irq; in chtdc_ti_probe()
127 ret = devm_regmap_add_irq_chip(dev, pmic->regmap, pmic->irq, in chtdc_ti_probe()
130 &pmic->irq_chip_data); in chtdc_ti_probe()
136 regmap_irq_get_domain(pmic->irq_chip_data)); in chtdc_ti_probe()
141 struct intel_soc_pmic *pmic = i2c_get_clientdata(i2c); in chtdc_ti_shutdown() local
143 disable_irq(pmic->irq); in chtdc_ti_shutdown()
148 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in chtdc_ti_suspend() local
150 disable_irq(pmic->irq); in chtdc_ti_suspend()
157 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); in chtdc_ti_resume() local
159 enable_irq(pmic->irq); in chtdc_ti_resume()