Lines Matching refs:max77843

31 	struct max77693_dev *max77843;  member
201 struct max77693_dev *max77843 = info->max77843; in max77843_muic_set_path() local
214 ret = regmap_update_bits(max77843->regmap_muic, in max77843_muic_set_path()
229 ret = regmap_update_bits(max77843->regmap_muic, in max77843_muic_set_path()
248 struct max77693_dev *max77843 = info->max77843; in max77843_charger_set_otg_vbus() local
256 regmap_update_bits(max77843->regmap_chg, MAX77843_CHG_REG_CHG_CNFG_00, in max77843_charger_set_otg_vbus()
630 struct max77693_dev *max77843 = info->max77843; in max77843_muic_irq_work() local
635 ret = regmap_bulk_read(max77843->regmap_muic, in max77843_muic_irq_work()
706 struct max77693_dev *max77843 = info->max77843; in max77843_muic_detect_cable_wq() local
712 ret = regmap_bulk_read(max77843->regmap_muic, in max77843_muic_detect_cable_wq()
747 struct max77693_dev *max77843 = info->max77843; in max77843_muic_set_debounce_time() local
755 ret = regmap_update_bits(max77843->regmap_muic, in max77843_muic_set_debounce_time()
772 static int max77843_init_muic_regmap(struct max77693_dev *max77843) in max77843_init_muic_regmap() argument
776 max77843->i2c_muic = i2c_new_dummy_device(max77843->i2c->adapter, in max77843_init_muic_regmap()
778 if (IS_ERR(max77843->i2c_muic)) { in max77843_init_muic_regmap()
779 dev_err(&max77843->i2c->dev, in max77843_init_muic_regmap()
781 return PTR_ERR(max77843->i2c_muic); in max77843_init_muic_regmap()
784 i2c_set_clientdata(max77843->i2c_muic, max77843); in max77843_init_muic_regmap()
786 max77843->regmap_muic = devm_regmap_init_i2c(max77843->i2c_muic, in max77843_init_muic_regmap()
788 if (IS_ERR(max77843->regmap_muic)) { in max77843_init_muic_regmap()
789 ret = PTR_ERR(max77843->regmap_muic); in max77843_init_muic_regmap()
793 ret = regmap_add_irq_chip(max77843->regmap_muic, max77843->irq, in max77843_init_muic_regmap()
795 0, &max77843_muic_irq_chip, &max77843->irq_data_muic); in max77843_init_muic_regmap()
797 dev_err(&max77843->i2c->dev, "Cannot add MUIC IRQ chip\n"); in max77843_init_muic_regmap()
804 i2c_unregister_device(max77843->i2c_muic); in max77843_init_muic_regmap()
811 struct max77693_dev *max77843 = dev_get_drvdata(pdev->dev.parent); in max77843_muic_probe() local
823 info->max77843 = max77843; in max77843_muic_probe()
829 ret = max77843_init_muic_regmap(max77843); in max77843_muic_probe()
836 ret = regmap_update_bits(max77843->regmap_muic, in max77843_muic_probe()
861 ret = regmap_bulk_read(max77843->regmap_muic, in max77843_muic_probe()
875 ret = regmap_read(max77843->regmap_muic, MAX77843_MUIC_REG_ID, &id); in max77843_muic_probe()
886 ret = regmap_bulk_read(max77843->regmap_muic, in max77843_muic_probe()
898 virq = regmap_irq_get_virq(max77843->irq_data_muic, in max77843_muic_probe()
925 regmap_del_irq_chip(max77843->irq, max77843->irq_data_muic); in max77843_muic_probe()
926 i2c_unregister_device(max77843->i2c_muic); in max77843_muic_probe()
934 struct max77693_dev *max77843 = info->max77843; in max77843_muic_remove() local
937 regmap_del_irq_chip(max77843->irq, max77843->irq_data_muic); in max77843_muic_remove()
938 i2c_unregister_device(max77843->i2c_muic); in max77843_muic_remove()