Lines Matching refs:pdata
46 struct cs42l56_platform_data pdata; member
1133 struct cs42l56_platform_data *pdata) in cs42l56_handle_of_data() argument
1139 pdata->ain1a_ref_cfg = true; in cs42l56_handle_of_data()
1142 pdata->ain2a_ref_cfg = true; in cs42l56_handle_of_data()
1145 pdata->ain1b_ref_cfg = true; in cs42l56_handle_of_data()
1148 pdata->ain2b_ref_cfg = true; in cs42l56_handle_of_data()
1151 pdata->micbias_lvl = val32; in cs42l56_handle_of_data()
1154 pdata->chgfreq = val32; in cs42l56_handle_of_data()
1157 pdata->adaptive_pwr = val32; in cs42l56_handle_of_data()
1160 pdata->hpfa_freq = val32; in cs42l56_handle_of_data()
1163 pdata->hpfb_freq = val32; in cs42l56_handle_of_data()
1165 pdata->gpio_nreset = of_get_named_gpio(np, "cirrus,gpio-nreset", 0); in cs42l56_handle_of_data()
1174 struct cs42l56_platform_data *pdata = in cs42l56_i2c_probe() local
1193 if (pdata) { in cs42l56_i2c_probe()
1194 cs42l56->pdata = *pdata; in cs42l56_i2c_probe()
1198 &cs42l56->pdata); in cs42l56_i2c_probe()
1204 if (cs42l56->pdata.gpio_nreset) { in cs42l56_i2c_probe()
1205 ret = gpio_request_one(cs42l56->pdata.gpio_nreset, in cs42l56_i2c_probe()
1210 cs42l56->pdata.gpio_nreset, ret); in cs42l56_i2c_probe()
1213 gpio_set_value_cansleep(cs42l56->pdata.gpio_nreset, 0); in cs42l56_i2c_probe()
1214 gpio_set_value_cansleep(cs42l56->pdata.gpio_nreset, 1); in cs42l56_i2c_probe()
1261 if (cs42l56->pdata.ain1a_ref_cfg) in cs42l56_i2c_probe()
1266 if (cs42l56->pdata.ain1b_ref_cfg) in cs42l56_i2c_probe()
1271 if (cs42l56->pdata.ain2a_ref_cfg) in cs42l56_i2c_probe()
1276 if (cs42l56->pdata.ain2b_ref_cfg) in cs42l56_i2c_probe()
1281 if (cs42l56->pdata.micbias_lvl) in cs42l56_i2c_probe()
1284 cs42l56->pdata.micbias_lvl); in cs42l56_i2c_probe()
1286 if (cs42l56->pdata.chgfreq) in cs42l56_i2c_probe()
1289 cs42l56->pdata.chgfreq); in cs42l56_i2c_probe()
1291 if (cs42l56->pdata.hpfb_freq) in cs42l56_i2c_probe()
1294 cs42l56->pdata.hpfb_freq); in cs42l56_i2c_probe()
1296 if (cs42l56->pdata.hpfa_freq) in cs42l56_i2c_probe()
1299 cs42l56->pdata.hpfa_freq); in cs42l56_i2c_probe()
1301 if (cs42l56->pdata.adaptive_pwr) in cs42l56_i2c_probe()
1304 cs42l56->pdata.adaptive_pwr); in cs42l56_i2c_probe()