Lines Matching refs:gpadc_pdata
465 struct palmas_gpadc_platform_data **gpadc_pdata) in palmas_gpadc_get_adc_dt_data() argument
487 *gpadc_pdata = gp_data; in palmas_gpadc_get_adc_dt_data()
496 struct palmas_gpadc_platform_data *gpadc_pdata = NULL; in palmas_gpadc_probe() local
502 if (pdata && pdata->gpadc_pdata) in palmas_gpadc_probe()
503 gpadc_pdata = pdata->gpadc_pdata; in palmas_gpadc_probe()
505 if (!gpadc_pdata && pdev->dev.of_node) { in palmas_gpadc_probe()
506 ret = palmas_gpadc_get_adc_dt_data(pdev, &gpadc_pdata); in palmas_gpadc_probe()
510 if (!gpadc_pdata) in palmas_gpadc_probe()
526 adc->auto_conversion_period = gpadc_pdata->auto_conversion_period_ms; in palmas_gpadc_probe()
544 if (gpadc_pdata->adc_wakeup1_data) { in palmas_gpadc_probe()
545 memcpy(&adc->wakeup1_data, gpadc_pdata->adc_wakeup1_data, in palmas_gpadc_probe()
560 if (gpadc_pdata->adc_wakeup2_data) { in palmas_gpadc_probe()
561 memcpy(&adc->wakeup2_data, gpadc_pdata->adc_wakeup2_data, in palmas_gpadc_probe()
577 if (gpadc_pdata->ch0_current <= 1) in palmas_gpadc_probe()
579 else if (gpadc_pdata->ch0_current <= 5) in palmas_gpadc_probe()
581 else if (gpadc_pdata->ch0_current <= 15) in palmas_gpadc_probe()
587 if (gpadc_pdata->ch3_current <= 1) in palmas_gpadc_probe()
589 else if (gpadc_pdata->ch3_current <= 10) in palmas_gpadc_probe()
591 else if (gpadc_pdata->ch3_current <= 400) in palmas_gpadc_probe()
596 adc->extended_delay = gpadc_pdata->extended_delay; in palmas_gpadc_probe()
623 if (gpadc_pdata->adc_wakeup2_data) in palmas_gpadc_probe()
626 if (gpadc_pdata->adc_wakeup1_data) in palmas_gpadc_probe()