Lines Matching refs:wm831x
30 struct wm831x *wm831x; in wm831x_i2c_probe() local
33 wm831x = devm_kzalloc(&i2c->dev, sizeof(struct wm831x), GFP_KERNEL); in wm831x_i2c_probe()
34 if (wm831x == NULL) in wm831x_i2c_probe()
37 i2c_set_clientdata(i2c, wm831x); in wm831x_i2c_probe()
38 wm831x->dev = &i2c->dev; in wm831x_i2c_probe()
40 wm831x->regmap = devm_regmap_init_i2c(i2c, &wm831x_regmap_config); in wm831x_i2c_probe()
41 if (IS_ERR(wm831x->regmap)) { in wm831x_i2c_probe()
42 ret = PTR_ERR(wm831x->regmap); in wm831x_i2c_probe()
43 dev_err(wm831x->dev, "Failed to allocate register map: %d\n", in wm831x_i2c_probe()
48 return wm831x_device_init(wm831x, id->driver_data, i2c->irq); in wm831x_i2c_probe()
53 struct wm831x *wm831x = i2c_get_clientdata(i2c); in wm831x_i2c_remove() local
55 wm831x_device_exit(wm831x); in wm831x_i2c_remove()
62 struct wm831x *wm831x = dev_get_drvdata(dev); in wm831x_i2c_suspend() local
64 return wm831x_device_suspend(wm831x); in wm831x_i2c_suspend()
69 struct wm831x *wm831x = dev_get_drvdata(dev); in wm831x_i2c_poweroff() local
71 wm831x_device_shutdown(wm831x); in wm831x_i2c_poweroff()