Lines Matching refs:da9052
176 static int da9052_map_irq(struct da9052 *da9052, int irq) in da9052_map_irq() argument
178 return regmap_irq_get_virq(da9052->irq_data, irq); in da9052_map_irq()
181 int da9052_enable_irq(struct da9052 *da9052, int irq) in da9052_enable_irq() argument
183 irq = da9052_map_irq(da9052, irq); in da9052_enable_irq()
193 int da9052_disable_irq(struct da9052 *da9052, int irq) in da9052_disable_irq() argument
195 irq = da9052_map_irq(da9052, irq); in da9052_disable_irq()
205 int da9052_disable_irq_nosync(struct da9052 *da9052, int irq) in da9052_disable_irq_nosync() argument
207 irq = da9052_map_irq(da9052, irq); in da9052_disable_irq_nosync()
217 int da9052_request_irq(struct da9052 *da9052, int irq, char *name, in da9052_request_irq() argument
220 irq = da9052_map_irq(da9052, irq); in da9052_request_irq()
230 void da9052_free_irq(struct da9052 *da9052, int irq, void *data) in da9052_free_irq() argument
232 irq = da9052_map_irq(da9052, irq); in da9052_free_irq()
242 struct da9052 *da9052 = irq_data; in da9052_auxadc_irq() local
244 complete(&da9052->done); in da9052_auxadc_irq()
249 int da9052_irq_init(struct da9052 *da9052) in da9052_irq_init() argument
253 ret = regmap_add_irq_chip(da9052->regmap, da9052->chip_irq, in da9052_irq_init()
256 &da9052->irq_data); in da9052_irq_init()
258 dev_err(da9052->dev, "regmap_add_irq_chip failed: %d\n", ret); in da9052_irq_init()
262 enable_irq_wake(da9052->chip_irq); in da9052_irq_init()
264 ret = da9052_request_irq(da9052, DA9052_IRQ_ADC_EOM, "adc-irq", in da9052_irq_init()
265 da9052_auxadc_irq, da9052); in da9052_irq_init()
268 dev_err(da9052->dev, "DA9052_IRQ_ADC_EOM failed: %d\n", ret); in da9052_irq_init()
275 regmap_del_irq_chip(da9052->chip_irq, da9052->irq_data); in da9052_irq_init()
281 int da9052_irq_exit(struct da9052 *da9052) in da9052_irq_exit() argument
283 da9052_free_irq(da9052, DA9052_IRQ_ADC_EOM, da9052); in da9052_irq_exit()
284 regmap_del_irq_chip(da9052->chip_irq, da9052->irq_data); in da9052_irq_exit()