Lines Matching refs:companion
470 i2c = (chip->id == CHIP_PM8607) ? chip->client : chip->companion; in pm860x_irq()
499 i2c = (chip->id == CHIP_PM8607) ? chip->client : chip->companion; in pm860x_irq_sync_unlock()
571 chip->client : chip->companion; in device_irq_init()
656 chip->client : chip->companion; in pm8606_osc_enable()
697 chip->client : chip->companion; in pm8606_osc_disable()
1068 if (chip->companion) { in pm860x_device_init()
1071 device_8606_init(chip, chip->companion, pdata); in pm860x_device_init()
1074 device_8607_init(chip, chip->companion, pdata); in pm860x_device_init()
1179 chip->companion = i2c_new_dummy_device(chip->client->adapter, in pm860x_probe()
1181 if (IS_ERR(chip->companion)) { in pm860x_probe()
1184 return PTR_ERR(chip->companion); in pm860x_probe()
1186 chip->regmap_companion = regmap_init_i2c(chip->companion, in pm860x_probe()
1190 dev_err(&chip->companion->dev, in pm860x_probe()
1192 i2c_unregister_device(chip->companion); in pm860x_probe()
1195 i2c_set_clientdata(chip->companion, chip); in pm860x_probe()
1207 if (chip->companion) { in pm860x_remove()
1209 i2c_unregister_device(chip->companion); in pm860x_remove()