Lines Matching refs:cs42l43
11 #include <linux/mfd/cs42l43-regs.h>
18 #include "cs42l43.h"
91 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev);
95 dev_dbg(cs42l43->dev, "Device attach\n");
100 cs42l43->attached = true;
102 complete(&cs42l43->device_attach);
105 dev_dbg(cs42l43->dev, "Device detach\n");
107 cs42l43->attached = false;
109 reinit_completion(&cs42l43->device_attach);
110 complete(&cs42l43->device_detach);
139 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev);
142 mutex_lock(&cs42l43->pll_lock);
144 if (cs42l43->sdw_freq != params->curr_dr_freq / 2) {
145 if (cs42l43->sdw_pll_active) {
146 dev_err(cs42l43->dev,
150 cs42l43->sdw_freq = params->curr_dr_freq / 2;
154 mutex_unlock(&cs42l43->pll_lock);
168 struct cs42l43 *cs42l43;
172 cs42l43 = devm_kzalloc(dev, sizeof(*cs42l43), GFP_KERNEL);
173 if (!cs42l43)
176 cs42l43->dev = dev;
177 cs42l43->sdw = sdw;
179 cs42l43->regmap = devm_regmap_init_sdw(sdw, &cs42l43_sdw_regmap);
180 if (IS_ERR(cs42l43->regmap)) {
181 ret = PTR_ERR(cs42l43->regmap);
182 dev_err(cs42l43->dev, "Failed to allocate regmap: %d\n", ret);
186 return cs42l43_dev_probe(cs42l43);
191 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev);
193 cs42l43_dev_remove(cs42l43);
206 .name = "cs42l43",