Lines Matching refs:pdata
161 static bool twl4030_audio_has_codec(struct twl4030_audio_data *pdata, in twl4030_audio_has_codec() argument
164 if (pdata && pdata->codec) in twl4030_audio_has_codec()
173 static bool twl4030_audio_has_vibra(struct twl4030_audio_data *pdata, in twl4030_audio_has_vibra() argument
178 if (pdata && pdata->vibra) in twl4030_audio_has_vibra()
190 struct twl4030_audio_data *pdata = dev_get_platdata(&pdev->dev); in twl4030_audio_probe() local
196 if (!pdata && !node) { in twl4030_audio_probe()
234 if (twl4030_audio_has_codec(pdata, node)) { in twl4030_audio_probe()
237 if (pdata) { in twl4030_audio_probe()
238 cell->platform_data = pdata->codec; in twl4030_audio_probe()
239 cell->pdata_size = sizeof(*pdata->codec); in twl4030_audio_probe()
243 if (twl4030_audio_has_vibra(pdata, node)) { in twl4030_audio_probe()
246 if (pdata) { in twl4030_audio_probe()
247 cell->platform_data = pdata->vibra; in twl4030_audio_probe()
248 cell->pdata_size = sizeof(*pdata->vibra); in twl4030_audio_probe()