Lines Matching defs:da9052
22 #include <linux/mfd/da9052/da9052.h>
28 struct da9052 *da9052 = kzalloc(sizeof(struct da9052), GFP_KERNEL);
30 if (!da9052)
37 da9052->dev = &spi->dev;
38 da9052->chip_irq = spi->irq;
40 dev_set_drvdata(&spi->dev, da9052);
45 da9052->regmap = regmap_init_spi(spi, &da9052_regmap_config);
46 if (IS_ERR(da9052->regmap)) {
47 ret = PTR_ERR(da9052->regmap);
53 ret = da9052_device_init(da9052, id->driver_data);
60 regmap_exit(da9052->regmap);
62 kfree(da9052);
68 struct da9052 *da9052 = dev_get_drvdata(&spi->dev);
70 da9052_device_exit(da9052);
71 regmap_exit(da9052->regmap);
72 kfree(da9052);
78 {"da9052", DA9052},
90 .name = "da9052",