max8907           177 drivers/mfd/max8907.c static struct max8907 *max8907_pm_off;
max8907           187 drivers/mfd/max8907.c 	struct max8907 *max8907;
max8907           198 drivers/mfd/max8907.c 	max8907 = devm_kzalloc(&i2c->dev, sizeof(struct max8907), GFP_KERNEL);
max8907           199 drivers/mfd/max8907.c 	if (!max8907) {
max8907           204 drivers/mfd/max8907.c 	max8907->dev = &i2c->dev;
max8907           205 drivers/mfd/max8907.c 	dev_set_drvdata(max8907->dev, max8907);
max8907           207 drivers/mfd/max8907.c 	max8907->i2c_gen = i2c;
max8907           208 drivers/mfd/max8907.c 	i2c_set_clientdata(i2c, max8907);
max8907           209 drivers/mfd/max8907.c 	max8907->regmap_gen = devm_regmap_init_i2c(i2c,
max8907           211 drivers/mfd/max8907.c 	if (IS_ERR(max8907->regmap_gen)) {
max8907           212 drivers/mfd/max8907.c 		ret = PTR_ERR(max8907->regmap_gen);
max8907           217 drivers/mfd/max8907.c 	max8907->i2c_rtc = i2c_new_dummy_device(i2c->adapter, MAX8907_RTC_I2C_ADDR);
max8907           218 drivers/mfd/max8907.c 	if (IS_ERR(max8907->i2c_rtc)) {
max8907           219 drivers/mfd/max8907.c 		ret = PTR_ERR(max8907->i2c_rtc);
max8907           222 drivers/mfd/max8907.c 	i2c_set_clientdata(max8907->i2c_rtc, max8907);
max8907           223 drivers/mfd/max8907.c 	max8907->regmap_rtc = devm_regmap_init_i2c(max8907->i2c_rtc,
max8907           225 drivers/mfd/max8907.c 	if (IS_ERR(max8907->regmap_rtc)) {
max8907           226 drivers/mfd/max8907.c 		ret = PTR_ERR(max8907->regmap_rtc);
max8907           231 drivers/mfd/max8907.c 	irq_set_status_flags(max8907->i2c_gen->irq, IRQ_NOAUTOEN);
max8907           233 drivers/mfd/max8907.c 	ret = regmap_add_irq_chip(max8907->regmap_gen, max8907->i2c_gen->irq,
max8907           236 drivers/mfd/max8907.c 				  &max8907->irqc_chg);
max8907           241 drivers/mfd/max8907.c 	ret = regmap_add_irq_chip(max8907->regmap_gen, max8907->i2c_gen->irq,
max8907           244 drivers/mfd/max8907.c 				  &max8907->irqc_on_off);
max8907           249 drivers/mfd/max8907.c 	ret = regmap_add_irq_chip(max8907->regmap_rtc, max8907->i2c_gen->irq,
max8907           252 drivers/mfd/max8907.c 				  &max8907->irqc_rtc);
max8907           258 drivers/mfd/max8907.c 	enable_irq(max8907->i2c_gen->irq);
max8907           260 drivers/mfd/max8907.c 	ret = mfd_add_devices(max8907->dev, -1, max8907_cells,
max8907           268 drivers/mfd/max8907.c 		max8907_pm_off = max8907;
max8907           275 drivers/mfd/max8907.c 	regmap_del_irq_chip(max8907->i2c_gen->irq, max8907->irqc_rtc);
max8907           277 drivers/mfd/max8907.c 	regmap_del_irq_chip(max8907->i2c_gen->irq, max8907->irqc_on_off);
max8907           279 drivers/mfd/max8907.c 	regmap_del_irq_chip(max8907->i2c_gen->irq, max8907->irqc_chg);
max8907           282 drivers/mfd/max8907.c 	i2c_unregister_device(max8907->i2c_rtc);
max8907           291 drivers/mfd/max8907.c 	struct max8907 *max8907 = i2c_get_clientdata(i2c);
max8907           293 drivers/mfd/max8907.c 	mfd_remove_devices(max8907->dev);
max8907           295 drivers/mfd/max8907.c 	regmap_del_irq_chip(max8907->i2c_gen->irq, max8907->irqc_rtc);
max8907           296 drivers/mfd/max8907.c 	regmap_del_irq_chip(max8907->i2c_gen->irq, max8907->irqc_on_off);
max8907           297 drivers/mfd/max8907.c 	regmap_del_irq_chip(max8907->i2c_gen->irq, max8907->irqc_chg);
max8907           299 drivers/mfd/max8907.c 	i2c_unregister_device(max8907->i2c_rtc);
max8907           276 drivers/regulator/max8907-regulator.c 	struct max8907 *max8907 = dev_get_drvdata(pdev->dev.parent);
max8907           277 drivers/regulator/max8907-regulator.c 	struct max8907_platform_data *pdata = dev_get_platdata(max8907->dev);
max8907           299 drivers/regulator/max8907-regulator.c 	ret = regmap_read(max8907->regmap_gen, MAX8907_REG_II2RR, &val);
max8907           321 drivers/regulator/max8907-regulator.c 		config.regmap = max8907->regmap_gen;
max8907            41 drivers/rtc/rtc-max8907.c 	struct max8907		*max8907;
max8907           177 drivers/rtc/rtc-max8907.c 	struct max8907 *max8907 = dev_get_drvdata(pdev->dev.parent);
max8907           186 drivers/rtc/rtc-max8907.c 	rtc->max8907 = max8907;
max8907           187 drivers/rtc/rtc-max8907.c 	rtc->regmap = max8907->regmap_rtc;
max8907           197 drivers/rtc/rtc-max8907.c 	rtc->irq = regmap_irq_get_virq(max8907->irqc_rtc,