wm8523            125 sound/soc/codecs/wm8523.c 	struct wm8523_priv *wm8523 = snd_soc_component_get_drvdata(component);
wm8523            130 sound/soc/codecs/wm8523.c 	if (!wm8523->sysclk) {
wm8523            138 sound/soc/codecs/wm8523.c 				   &wm8523->rate_constraint);
wm8523            148 sound/soc/codecs/wm8523.c 	struct wm8523_priv *wm8523 = snd_soc_component_get_drvdata(component);
wm8523            155 sound/soc/codecs/wm8523.c 		if (wm8523->sysclk / params_rate(params) ==
wm8523            163 sound/soc/codecs/wm8523.c 			wm8523->sysclk / params_rate(params));
wm8523            212 sound/soc/codecs/wm8523.c 	struct wm8523_priv *wm8523 = snd_soc_component_get_drvdata(component);
wm8523            216 sound/soc/codecs/wm8523.c 	wm8523->sysclk = freq;
wm8523            218 sound/soc/codecs/wm8523.c 	wm8523->rate_constraint.count = 0;
wm8523            240 sound/soc/codecs/wm8523.c 			wm8523->rate_constraint_list[i] = val;
wm8523            241 sound/soc/codecs/wm8523.c 			wm8523->rate_constraint.count++;
wm8523            250 sound/soc/codecs/wm8523.c 	if (wm8523->rate_constraint.count == 0)
wm8523            319 sound/soc/codecs/wm8523.c 	struct wm8523_priv *wm8523 = snd_soc_component_get_drvdata(component);
wm8523            334 sound/soc/codecs/wm8523.c 			ret = regulator_bulk_enable(ARRAY_SIZE(wm8523->supplies),
wm8523            335 sound/soc/codecs/wm8523.c 						    wm8523->supplies);
wm8523            344 sound/soc/codecs/wm8523.c 			regcache_sync(wm8523->regmap);
wm8523            365 sound/soc/codecs/wm8523.c 		regulator_bulk_disable(ARRAY_SIZE(wm8523->supplies),
wm8523            366 sound/soc/codecs/wm8523.c 				       wm8523->supplies);
wm8523            398 sound/soc/codecs/wm8523.c 	struct wm8523_priv *wm8523 = snd_soc_component_get_drvdata(component);
wm8523            400 sound/soc/codecs/wm8523.c 	wm8523->rate_constraint.list = &wm8523->rate_constraint_list[0];
wm8523            401 sound/soc/codecs/wm8523.c 	wm8523->rate_constraint.count =
wm8523            402 sound/soc/codecs/wm8523.c 		ARRAY_SIZE(wm8523->rate_constraint_list);
wm8523            449 sound/soc/codecs/wm8523.c 	struct wm8523_priv *wm8523;
wm8523            453 sound/soc/codecs/wm8523.c 	wm8523 = devm_kzalloc(&i2c->dev, sizeof(struct wm8523_priv),
wm8523            455 sound/soc/codecs/wm8523.c 	if (wm8523 == NULL)
wm8523            458 sound/soc/codecs/wm8523.c 	wm8523->regmap = devm_regmap_init_i2c(i2c, &wm8523_regmap);
wm8523            459 sound/soc/codecs/wm8523.c 	if (IS_ERR(wm8523->regmap)) {
wm8523            460 sound/soc/codecs/wm8523.c 		ret = PTR_ERR(wm8523->regmap);
wm8523            465 sound/soc/codecs/wm8523.c 	for (i = 0; i < ARRAY_SIZE(wm8523->supplies); i++)
wm8523            466 sound/soc/codecs/wm8523.c 		wm8523->supplies[i].supply = wm8523_supply_names[i];
wm8523            468 sound/soc/codecs/wm8523.c 	ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8523->supplies),
wm8523            469 sound/soc/codecs/wm8523.c 				      wm8523->supplies);
wm8523            475 sound/soc/codecs/wm8523.c 	ret = regulator_bulk_enable(ARRAY_SIZE(wm8523->supplies),
wm8523            476 sound/soc/codecs/wm8523.c 				    wm8523->supplies);
wm8523            482 sound/soc/codecs/wm8523.c 	ret = regmap_read(wm8523->regmap, WM8523_DEVICE_ID, &val);
wm8523            493 sound/soc/codecs/wm8523.c 	ret = regmap_read(wm8523->regmap, WM8523_REVISION, &val);
wm8523            501 sound/soc/codecs/wm8523.c 	ret = regmap_write(wm8523->regmap, WM8523_DEVICE_ID, 0x8523);
wm8523            507 sound/soc/codecs/wm8523.c 	regulator_bulk_disable(ARRAY_SIZE(wm8523->supplies), wm8523->supplies);
wm8523            509 sound/soc/codecs/wm8523.c 	i2c_set_clientdata(i2c, wm8523);
wm8523            517 sound/soc/codecs/wm8523.c 	regulator_bulk_disable(ARRAY_SIZE(wm8523->supplies), wm8523->supplies);