Lines Matching refs:da9055
354 int da9055_device_init(struct da9055 *da9055) in da9055_device_init() argument
356 struct da9055_pdata *pdata = dev_get_platdata(da9055->dev); in da9055_device_init()
361 pdata->init(da9055); in da9055_device_init()
364 da9055->irq_base = -1; in da9055_device_init()
366 da9055->irq_base = pdata->irq_base; in da9055_device_init()
368 ret = da9055_group_write(da9055, DA9055_REG_EVENT_A, 3, clear_events); in da9055_device_init()
372 ret = regmap_add_irq_chip(da9055->regmap, da9055->chip_irq, in da9055_device_init()
374 da9055->irq_base, &da9055_regmap_irq_chip, in da9055_device_init()
375 &da9055->irq_data); in da9055_device_init()
379 da9055->irq_base = regmap_irq_chip_get_base(da9055->irq_data); in da9055_device_init()
381 ret = mfd_add_devices(da9055->dev, -1, in da9055_device_init()
383 NULL, da9055->irq_base, NULL); in da9055_device_init()
390 mfd_remove_devices(da9055->dev); in da9055_device_init()
394 void da9055_device_exit(struct da9055 *da9055) in da9055_device_exit() argument
396 regmap_del_irq_chip(da9055->chip_irq, da9055->irq_data); in da9055_device_exit()
397 mfd_remove_devices(da9055->dev); in da9055_device_exit()