Lines Matching refs:wm8728
163 struct wm8728_priv *wm8728 = snd_soc_component_get_drvdata(component); in wm8728_set_bias_level() local
176 regcache_sync(wm8728->regmap); in wm8728_set_bias_level()
245 struct wm8728_priv *wm8728; in wm8728_spi_probe() local
248 wm8728 = devm_kzalloc(&spi->dev, sizeof(struct wm8728_priv), in wm8728_spi_probe()
250 if (wm8728 == NULL) in wm8728_spi_probe()
253 wm8728->regmap = devm_regmap_init_spi(spi, &wm8728_regmap); in wm8728_spi_probe()
254 if (IS_ERR(wm8728->regmap)) in wm8728_spi_probe()
255 return PTR_ERR(wm8728->regmap); in wm8728_spi_probe()
257 spi_set_drvdata(spi, wm8728); in wm8728_spi_probe()
277 struct wm8728_priv *wm8728; in wm8728_i2c_probe() local
280 wm8728 = devm_kzalloc(&i2c->dev, sizeof(struct wm8728_priv), in wm8728_i2c_probe()
282 if (wm8728 == NULL) in wm8728_i2c_probe()
285 wm8728->regmap = devm_regmap_init_i2c(i2c, &wm8728_regmap); in wm8728_i2c_probe()
286 if (IS_ERR(wm8728->regmap)) in wm8728_i2c_probe()
287 return PTR_ERR(wm8728->regmap); in wm8728_i2c_probe()
289 i2c_set_clientdata(i2c, wm8728); in wm8728_i2c_probe()