wm8400 33 drivers/mfd/wm8400-core.c static int wm8400_register_codec(struct wm8400 *wm8400) wm8400 37 drivers/mfd/wm8400-core.c .platform_data = wm8400, wm8400 38 drivers/mfd/wm8400-core.c .pdata_size = sizeof(*wm8400), wm8400 41 drivers/mfd/wm8400-core.c return devm_mfd_add_devices(wm8400->dev, -1, &cell, 1, NULL, 0, NULL); wm8400 51 drivers/mfd/wm8400-core.c static int wm8400_init(struct wm8400 *wm8400, wm8400 57 drivers/mfd/wm8400-core.c dev_set_drvdata(wm8400->dev, wm8400); wm8400 60 drivers/mfd/wm8400-core.c ret = regmap_read(wm8400->regmap, WM8400_RESET_ID, ®); wm8400 62 drivers/mfd/wm8400-core.c dev_err(wm8400->dev, "Chip ID register read failed\n"); wm8400 66 drivers/mfd/wm8400-core.c dev_err(wm8400->dev, "Device is not a WM8400, ID is %x\n", wm8400 71 drivers/mfd/wm8400-core.c ret = regmap_read(wm8400->regmap, WM8400_ID, ®); wm8400 73 drivers/mfd/wm8400-core.c dev_err(wm8400->dev, "ID register read failed: %d\n", ret); wm8400 77 drivers/mfd/wm8400-core.c dev_info(wm8400->dev, "WM8400 revision %x\n", reg); wm8400 79 drivers/mfd/wm8400-core.c ret = wm8400_register_codec(wm8400); wm8400 81 drivers/mfd/wm8400-core.c dev_err(wm8400->dev, "Failed to register codec\n"); wm8400 86 drivers/mfd/wm8400-core.c ret = pdata->platform_init(wm8400->dev); wm8400 88 drivers/mfd/wm8400-core.c dev_err(wm8400->dev, "Platform init failed: %d\n", wm8400 93 drivers/mfd/wm8400-core.c dev_warn(wm8400->dev, "No platform initialisation supplied\n"); wm8400 112 drivers/mfd/wm8400-core.c void wm8400_reset_codec_reg_cache(struct wm8400 *wm8400) wm8400 114 drivers/mfd/wm8400-core.c regmap_reinit_cache(wm8400->regmap, &wm8400_regmap_config); wm8400 122 drivers/mfd/wm8400-core.c struct wm8400 *wm8400; wm8400 124 drivers/mfd/wm8400-core.c wm8400 = devm_kzalloc(&i2c->dev, sizeof(struct wm8400), GFP_KERNEL); wm8400 125 drivers/mfd/wm8400-core.c if (!wm8400) wm8400 128 drivers/mfd/wm8400-core.c wm8400->regmap = devm_regmap_init_i2c(i2c, &wm8400_regmap_config); wm8400 129 drivers/mfd/wm8400-core.c if (IS_ERR(wm8400->regmap)) wm8400 130 drivers/mfd/wm8400-core.c return PTR_ERR(wm8400->regmap); wm8400 132 drivers/mfd/wm8400-core.c wm8400->dev = &i2c->dev; wm8400 133 drivers/mfd/wm8400-core.c i2c_set_clientdata(i2c, wm8400); wm8400 135 drivers/mfd/wm8400-core.c return wm8400_init(wm8400, dev_get_platdata(&i2c->dev)); wm8400 204 drivers/regulator/wm8400-regulator.c struct wm8400 *wm8400 = container_of(pdev, struct wm8400, regulators[pdev->id]); wm8400 210 drivers/regulator/wm8400-regulator.c config.driver_data = wm8400; wm8400 211 drivers/regulator/wm8400-regulator.c config.regmap = wm8400->regmap; wm8400 244 drivers/regulator/wm8400-regulator.c struct wm8400 *wm8400 = dev_get_drvdata(dev); wm8400 246 drivers/regulator/wm8400-regulator.c if (wm8400->regulators[reg].name) wm8400 249 drivers/regulator/wm8400-regulator.c initdata->driver_data = wm8400; wm8400 251 drivers/regulator/wm8400-regulator.c wm8400->regulators[reg].name = "wm8400-regulator"; wm8400 252 drivers/regulator/wm8400-regulator.c wm8400->regulators[reg].id = reg; wm8400 253 drivers/regulator/wm8400-regulator.c wm8400->regulators[reg].dev.parent = dev; wm8400 254 drivers/regulator/wm8400-regulator.c wm8400->regulators[reg].dev.platform_data = initdata; wm8400 256 drivers/regulator/wm8400-regulator.c return platform_device_register(&wm8400->regulators[reg]); wm8400 1171 include/linux/mfd/wm8400-audio.h struct wm8400; wm8400 1172 include/linux/mfd/wm8400-audio.h void wm8400_reset_codec_reg_cache(struct wm8400 *wm8400); wm8400 56 sound/soc/codecs/wm8400.c struct wm8400 *wm8400; wm8400 65 sound/soc/codecs/wm8400.c struct wm8400_priv *wm8400 = snd_soc_component_get_drvdata(component); wm8400 67 sound/soc/codecs/wm8400.c wm8400_reset_codec_reg_cache(wm8400->wm8400); wm8400 848 sound/soc/codecs/wm8400.c struct wm8400_priv *wm8400 = snd_soc_component_get_drvdata(component); wm8400 850 sound/soc/codecs/wm8400.c wm8400->sysclk = freq; wm8400 864 sound/soc/codecs/wm8400.c static int fll_factors(struct wm8400_priv *wm8400, struct fll_factors *factors, wm8400 875 sound/soc/codecs/wm8400.c dev_err(wm8400->wm8400->dev, wm8400 902 sound/soc/codecs/wm8400.c dev_err(wm8400->wm8400->dev, wm8400 924 sound/soc/codecs/wm8400.c dev_dbg(wm8400->wm8400->dev, wm8400 937 sound/soc/codecs/wm8400.c struct wm8400_priv *wm8400 = snd_soc_component_get_drvdata(component); wm8400 942 sound/soc/codecs/wm8400.c if (freq_in == wm8400->fll_in && freq_out == wm8400->fll_out) wm8400 946 sound/soc/codecs/wm8400.c ret = fll_factors(wm8400, &factors, freq_in, freq_out); wm8400 956 sound/soc/codecs/wm8400.c wm8400->fll_out = freq_out; wm8400 957 sound/soc/codecs/wm8400.c wm8400->fll_in = freq_in; wm8400 1124 sound/soc/codecs/wm8400.c struct wm8400_priv *wm8400 = snd_soc_component_get_drvdata(component); wm8400 1144 sound/soc/codecs/wm8400.c dev_err(wm8400->wm8400->dev, wm8400 1273 sound/soc/codecs/wm8400.c struct wm8400 *wm8400 = dev_get_platdata(component->dev); wm8400 1283 sound/soc/codecs/wm8400.c snd_soc_component_init_regmap(component, wm8400->regmap); wm8400 1285 sound/soc/codecs/wm8400.c priv->wm8400 = wm8400; wm8400 1287 sound/soc/codecs/wm8400.c ret = devm_regulator_bulk_get(wm8400->dev,