Lines Matching refs:i2c_pri
40 static int bcm590xx_i2c_probe(struct i2c_client *i2c_pri) in bcm590xx_i2c_probe() argument
45 bcm590xx = devm_kzalloc(&i2c_pri->dev, sizeof(*bcm590xx), GFP_KERNEL); in bcm590xx_i2c_probe()
49 i2c_set_clientdata(i2c_pri, bcm590xx); in bcm590xx_i2c_probe()
50 bcm590xx->dev = &i2c_pri->dev; in bcm590xx_i2c_probe()
51 bcm590xx->i2c_pri = i2c_pri; in bcm590xx_i2c_probe()
53 bcm590xx->regmap_pri = devm_regmap_init_i2c(i2c_pri, in bcm590xx_i2c_probe()
57 dev_err(&i2c_pri->dev, "primary regmap init failed: %d\n", ret); in bcm590xx_i2c_probe()
62 bcm590xx->i2c_sec = i2c_new_dummy_device(i2c_pri->adapter, in bcm590xx_i2c_probe()
63 i2c_pri->addr | BIT(2)); in bcm590xx_i2c_probe()
65 dev_err(&i2c_pri->dev, "failed to add secondary I2C device\n"); in bcm590xx_i2c_probe()
79 ret = devm_mfd_add_devices(&i2c_pri->dev, -1, bcm590xx_devs, in bcm590xx_i2c_probe()
82 dev_err(&i2c_pri->dev, "failed to add sub-devices: %d\n", ret); in bcm590xx_i2c_probe()