Lines Matching refs:wm8350
29 struct wm8350 *wm8350; in wm8350_i2c_probe() local
33 wm8350 = devm_kzalloc(&i2c->dev, sizeof(struct wm8350), GFP_KERNEL); in wm8350_i2c_probe()
34 if (wm8350 == NULL) in wm8350_i2c_probe()
37 wm8350->regmap = devm_regmap_init_i2c(i2c, &wm8350_regmap); in wm8350_i2c_probe()
38 if (IS_ERR(wm8350->regmap)) { in wm8350_i2c_probe()
39 ret = PTR_ERR(wm8350->regmap); 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()
53 struct wm8350 *wm8350 = i2c_get_clientdata(i2c); in wm8350_i2c_remove() local
55 wm8350_device_exit(wm8350); in wm8350_i2c_remove()