max77843 31 drivers/extcon/extcon-max77843.c struct max77693_dev *max77843; max77843 202 drivers/extcon/extcon-max77843.c struct max77693_dev *max77843 = info->max77843; max77843 215 drivers/extcon/extcon-max77843.c ret = regmap_update_bits(max77843->regmap_muic, max77843 230 drivers/extcon/extcon-max77843.c ret = regmap_update_bits(max77843->regmap_muic, max77843 249 drivers/extcon/extcon-max77843.c struct max77693_dev *max77843 = info->max77843; max77843 257 drivers/extcon/extcon-max77843.c regmap_update_bits(max77843->regmap_chg, MAX77843_CHG_REG_CHG_CNFG_00, max77843 631 drivers/extcon/extcon-max77843.c struct max77693_dev *max77843 = info->max77843; max77843 636 drivers/extcon/extcon-max77843.c ret = regmap_bulk_read(max77843->regmap_muic, max77843 707 drivers/extcon/extcon-max77843.c struct max77693_dev *max77843 = info->max77843; max77843 713 drivers/extcon/extcon-max77843.c ret = regmap_bulk_read(max77843->regmap_muic, max77843 748 drivers/extcon/extcon-max77843.c struct max77693_dev *max77843 = info->max77843; max77843 756 drivers/extcon/extcon-max77843.c ret = regmap_update_bits(max77843->regmap_muic, max77843 773 drivers/extcon/extcon-max77843.c static int max77843_init_muic_regmap(struct max77693_dev *max77843) max77843 777 drivers/extcon/extcon-max77843.c max77843->i2c_muic = i2c_new_dummy_device(max77843->i2c->adapter, max77843 779 drivers/extcon/extcon-max77843.c if (IS_ERR(max77843->i2c_muic)) { max77843 780 drivers/extcon/extcon-max77843.c dev_err(&max77843->i2c->dev, max77843 782 drivers/extcon/extcon-max77843.c return PTR_ERR(max77843->i2c_muic); max77843 785 drivers/extcon/extcon-max77843.c i2c_set_clientdata(max77843->i2c_muic, max77843); max77843 787 drivers/extcon/extcon-max77843.c max77843->regmap_muic = devm_regmap_init_i2c(max77843->i2c_muic, max77843 789 drivers/extcon/extcon-max77843.c if (IS_ERR(max77843->regmap_muic)) { max77843 790 drivers/extcon/extcon-max77843.c ret = PTR_ERR(max77843->regmap_muic); max77843 794 drivers/extcon/extcon-max77843.c ret = regmap_add_irq_chip(max77843->regmap_muic, max77843->irq, max77843 796 drivers/extcon/extcon-max77843.c 0, &max77843_muic_irq_chip, &max77843->irq_data_muic); max77843 798 drivers/extcon/extcon-max77843.c dev_err(&max77843->i2c->dev, "Cannot add MUIC IRQ chip\n"); max77843 805 drivers/extcon/extcon-max77843.c i2c_unregister_device(max77843->i2c_muic); max77843 812 drivers/extcon/extcon-max77843.c struct max77693_dev *max77843 = dev_get_drvdata(pdev->dev.parent); max77843 824 drivers/extcon/extcon-max77843.c info->max77843 = max77843; max77843 830 drivers/extcon/extcon-max77843.c ret = max77843_init_muic_regmap(max77843); max77843 837 drivers/extcon/extcon-max77843.c ret = regmap_update_bits(max77843->regmap_muic, max77843 862 drivers/extcon/extcon-max77843.c ret = regmap_bulk_read(max77843->regmap_muic, max77843 876 drivers/extcon/extcon-max77843.c ret = regmap_read(max77843->regmap_muic, MAX77843_MUIC_REG_ID, &id); max77843 887 drivers/extcon/extcon-max77843.c ret = regmap_bulk_read(max77843->regmap_muic, max77843 899 drivers/extcon/extcon-max77843.c virq = regmap_irq_get_virq(max77843->irq_data_muic, max77843 926 drivers/extcon/extcon-max77843.c regmap_del_irq_chip(max77843->irq, max77843->irq_data_muic); max77843 927 drivers/extcon/extcon-max77843.c i2c_unregister_device(max77843->i2c_muic); max77843 935 drivers/extcon/extcon-max77843.c struct max77693_dev *max77843 = info->max77843; max77843 938 drivers/extcon/extcon-max77843.c regmap_del_irq_chip(max77843->irq, max77843->irq_data_muic); max77843 939 drivers/extcon/extcon-max77843.c i2c_unregister_device(max77843->i2c_muic); max77843 69 drivers/mfd/max77843.c static int max77843_chg_init(struct max77693_dev *max77843) max77843 73 drivers/mfd/max77843.c max77843->i2c_chg = i2c_new_dummy_device(max77843->i2c->adapter, I2C_ADDR_CHG); max77843 74 drivers/mfd/max77843.c if (IS_ERR(max77843->i2c_chg)) { max77843 75 drivers/mfd/max77843.c dev_err(&max77843->i2c->dev, max77843 77 drivers/mfd/max77843.c return PTR_ERR(max77843->i2c_chg); max77843 79 drivers/mfd/max77843.c i2c_set_clientdata(max77843->i2c_chg, max77843); max77843 81 drivers/mfd/max77843.c max77843->regmap_chg = devm_regmap_init_i2c(max77843->i2c_chg, max77843 83 drivers/mfd/max77843.c if (IS_ERR(max77843->regmap_chg)) { max77843 84 drivers/mfd/max77843.c ret = PTR_ERR(max77843->regmap_chg); max77843 91 drivers/mfd/max77843.c i2c_unregister_device(max77843->i2c_chg); max77843 99 drivers/mfd/max77843.c struct max77693_dev *max77843; max77843 103 drivers/mfd/max77843.c max77843 = devm_kzalloc(&i2c->dev, sizeof(*max77843), GFP_KERNEL); max77843 104 drivers/mfd/max77843.c if (!max77843) max77843 107 drivers/mfd/max77843.c i2c_set_clientdata(i2c, max77843); max77843 108 drivers/mfd/max77843.c max77843->dev = &i2c->dev; max77843 109 drivers/mfd/max77843.c max77843->i2c = i2c; max77843 110 drivers/mfd/max77843.c max77843->irq = i2c->irq; max77843 111 drivers/mfd/max77843.c max77843->type = id->driver_data; max77843 113 drivers/mfd/max77843.c max77843->regmap = devm_regmap_init_i2c(i2c, max77843 115 drivers/mfd/max77843.c if (IS_ERR(max77843->regmap)) { max77843 117 drivers/mfd/max77843.c return PTR_ERR(max77843->regmap); max77843 120 drivers/mfd/max77843.c ret = regmap_add_irq_chip(max77843->regmap, max77843->irq, max77843 122 drivers/mfd/max77843.c 0, &max77843_irq_chip, &max77843->irq_data_topsys); max77843 128 drivers/mfd/max77843.c ret = regmap_read(max77843->regmap, max77843 136 drivers/mfd/max77843.c ret = max77843_chg_init(max77843); max77843 142 drivers/mfd/max77843.c ret = regmap_update_bits(max77843->regmap, max77843 151 drivers/mfd/max77843.c ret = mfd_add_devices(max77843->dev, -1, max77843_devs, max77843 158 drivers/mfd/max77843.c device_init_wakeup(max77843->dev, true); max77843 163 drivers/mfd/max77843.c regmap_del_irq_chip(max77843->irq, max77843->irq_data_topsys); max77843 181 drivers/mfd/max77843.c struct max77693_dev *max77843 = i2c_get_clientdata(i2c); max77843 183 drivers/mfd/max77843.c disable_irq(max77843->irq); max77843 185 drivers/mfd/max77843.c enable_irq_wake(max77843->irq); max77843 193 drivers/mfd/max77843.c struct max77693_dev *max77843 = i2c_get_clientdata(i2c); max77843 196 drivers/mfd/max77843.c disable_irq_wake(max77843->irq); max77843 197 drivers/mfd/max77843.c enable_irq(max77843->irq);