Lines Matching refs:max77541
94 struct max77541 *max77541 = dev_get_drvdata(dev); in max77541_pmic_irq_init() local
95 int irq = max77541->i2c->irq; in max77541_pmic_irq_init()
98 ret = devm_regmap_add_irq_chip(dev, max77541->regmap, irq, in max77541_pmic_irq_init()
101 &max77541->irq_data); in max77541_pmic_irq_init()
105 ret = devm_regmap_add_irq_chip(dev, max77541->regmap, irq, in max77541_pmic_irq_init()
108 &max77541->irq_topsys); in max77541_pmic_irq_init()
112 ret = devm_regmap_add_irq_chip(dev, max77541->regmap, irq, in max77541_pmic_irq_init()
115 &max77541->irq_buck); in max77541_pmic_irq_init()
119 if (max77541->id == MAX77541) { in max77541_pmic_irq_init()
120 ret = devm_regmap_add_irq_chip(dev, max77541->regmap, irq, in max77541_pmic_irq_init()
123 &max77541->irq_adc); in max77541_pmic_irq_init()
133 struct max77541 *max77541 = dev_get_drvdata(dev); in max77541_pmic_setup() local
138 switch (max77541->id) { in max77541_pmic_setup()
166 struct max77541 *max77541; in max77541_probe() local
168 max77541 = devm_kzalloc(dev, sizeof(*max77541), GFP_KERNEL); in max77541_probe()
169 if (!max77541) in max77541_probe()
172 i2c_set_clientdata(client, max77541); in max77541_probe()
173 max77541->i2c = client; in max77541_probe()
175 max77541->id = (uintptr_t)i2c_get_match_data(client); in max77541_probe()
176 if (!max77541->id) in max77541_probe()
179 max77541->regmap = devm_regmap_init_i2c(client, in max77541_probe()
181 if (IS_ERR(max77541->regmap)) in max77541_probe()
182 return dev_err_probe(dev, PTR_ERR(max77541->regmap), in max77541_probe()