Lines Matching refs:i2c
26 static int wm8350_i2c_probe(struct i2c_client *i2c, in wm8350_i2c_probe() argument
30 struct wm8350_platform_data *pdata = dev_get_platdata(&i2c->dev); in wm8350_i2c_probe()
33 wm8350 = devm_kzalloc(&i2c->dev, sizeof(struct wm8350), GFP_KERNEL); in wm8350_i2c_probe()
37 wm8350->regmap = devm_regmap_init_i2c(i2c, &wm8350_regmap); in wm8350_i2c_probe()
40 dev_err(&i2c->dev, "Failed to allocate register map: %d\n", in wm8350_i2c_probe()
45 i2c_set_clientdata(i2c, wm8350); in wm8350_i2c_probe()
46 wm8350->dev = &i2c->dev; in wm8350_i2c_probe()
48 return wm8350_device_init(wm8350, i2c->irq, pdata); in wm8350_i2c_probe()
51 static int wm8350_i2c_remove(struct i2c_client *i2c) in wm8350_i2c_remove() argument
53 struct wm8350 *wm8350 = i2c_get_clientdata(i2c); in wm8350_i2c_remove()
66 MODULE_DEVICE_TABLE(i2c, wm8350_i2c_id);