gpadc 43 drivers/hwmon/ab8500.c struct ab8500_gpadc *gpadc; gpadc 90 drivers/hwmon/ab8500.c voltage = ab8500_gpadc_convert(ab8500_data->gpadc, sensor); gpadc 167 drivers/hwmon/ab8500.c ab8500_data->gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 168 drivers/hwmon/ab8500.c if (IS_ERR(ab8500_data->gpadc)) gpadc 169 drivers/hwmon/ab8500.c return PTR_ERR(ab8500_data->gpadc); gpadc 86 drivers/iio/adc/da9150-gpadc.c struct da9150_gpadc *gpadc = data; gpadc 88 drivers/iio/adc/da9150-gpadc.c complete(&gpadc->complete); gpadc 93 drivers/iio/adc/da9150-gpadc.c static int da9150_gpadc_read_adc(struct da9150_gpadc *gpadc, int hw_chan) gpadc 98 drivers/iio/adc/da9150-gpadc.c mutex_lock(&gpadc->lock); gpadc 101 drivers/iio/adc/da9150-gpadc.c da9150_reg_write(gpadc->da9150, DA9150_GPADC_MAN, gpadc 106 drivers/iio/adc/da9150-gpadc.c try_wait_for_completion(&gpadc->complete); gpadc 109 drivers/iio/adc/da9150-gpadc.c wait_for_completion_timeout(&gpadc->complete, msecs_to_jiffies(5)); gpadc 112 drivers/iio/adc/da9150-gpadc.c da9150_bulk_read(gpadc->da9150, DA9150_GPADC_RES_A, 2, result_regs); gpadc 114 drivers/iio/adc/da9150-gpadc.c mutex_unlock(&gpadc->lock); gpadc 118 drivers/iio/adc/da9150-gpadc.c dev_err(gpadc->dev, "Timeout on channel %d of GPADC\n", gpadc 156 drivers/iio/adc/da9150-gpadc.c static int da9150_gpadc_read_processed(struct da9150_gpadc *gpadc, int channel, gpadc 161 drivers/iio/adc/da9150-gpadc.c raw_val = da9150_gpadc_read_adc(gpadc, hw_chan); gpadc 226 drivers/iio/adc/da9150-gpadc.c struct da9150_gpadc *gpadc = iio_priv(indio_dev); gpadc 235 drivers/iio/adc/da9150-gpadc.c return da9150_gpadc_read_processed(gpadc, chan->channel, gpadc 322 drivers/iio/adc/da9150-gpadc.c struct da9150_gpadc *gpadc; gpadc 326 drivers/iio/adc/da9150-gpadc.c indio_dev = devm_iio_device_alloc(dev, sizeof(*gpadc)); gpadc 331 drivers/iio/adc/da9150-gpadc.c gpadc = iio_priv(indio_dev); gpadc 334 drivers/iio/adc/da9150-gpadc.c gpadc->da9150 = da9150; gpadc 335 drivers/iio/adc/da9150-gpadc.c gpadc->dev = dev; gpadc 336 drivers/iio/adc/da9150-gpadc.c mutex_init(&gpadc->lock); gpadc 337 drivers/iio/adc/da9150-gpadc.c init_completion(&gpadc->complete); gpadc 344 drivers/iio/adc/da9150-gpadc.c IRQF_ONESHOT, "GPADC", gpadc); gpadc 109 drivers/iio/adc/twl6030-gpadc.c int (*calibrate)(struct twl6030_gpadc_data *gpadc); gpadc 372 drivers/iio/adc/twl6030-gpadc.c struct twl6030_gpadc_data *gpadc = iio_priv(indio_dev); gpadc 374 drivers/iio/adc/twl6030-gpadc.c complete(&gpadc->irq_complete); gpadc 435 drivers/iio/adc/twl6030-gpadc.c static int twl6030_gpadc_make_correction(struct twl6030_gpadc_data *gpadc, gpadc 438 drivers/iio/adc/twl6030-gpadc.c const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; gpadc 442 drivers/iio/adc/twl6030-gpadc.c i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); gpadc 444 drivers/iio/adc/twl6030-gpadc.c gpadc->twl6030_cal_tbl[i].offset_error) / gpadc 445 drivers/iio/adc/twl6030-gpadc.c gpadc->twl6030_cal_tbl[i].gain_error; gpadc 450 drivers/iio/adc/twl6030-gpadc.c static int twl6030_gpadc_get_raw(struct twl6030_gpadc_data *gpadc, gpadc 453 drivers/iio/adc/twl6030-gpadc.c u8 reg = gpadc->pdata->channel_to_reg(channel); gpadc 460 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "unable to read register 0x%X\n", reg); gpadc 465 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC raw code: %d", raw_code); gpadc 467 drivers/iio/adc/twl6030-gpadc.c if (twl6030_channel_calibrated(gpadc->pdata, channel)) gpadc 468 drivers/iio/adc/twl6030-gpadc.c *res = twl6030_gpadc_make_correction(gpadc, channel, raw_code); gpadc 475 drivers/iio/adc/twl6030-gpadc.c static int twl6030_gpadc_get_processed(struct twl6030_gpadc_data *gpadc, gpadc 478 drivers/iio/adc/twl6030-gpadc.c const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; gpadc 484 drivers/iio/adc/twl6030-gpadc.c ret = twl6030_gpadc_get_raw(gpadc, channel, &corrected_code); gpadc 488 drivers/iio/adc/twl6030-gpadc.c i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); gpadc 490 drivers/iio/adc/twl6030-gpadc.c gpadc->twl6030_cal_tbl[i].gain; gpadc 495 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC corrected code: %d", corrected_code); gpadc 496 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC value: %d", channel_value); gpadc 507 drivers/iio/adc/twl6030-gpadc.c struct twl6030_gpadc_data *gpadc = iio_priv(indio_dev); gpadc 511 drivers/iio/adc/twl6030-gpadc.c mutex_lock(&gpadc->lock); gpadc 513 drivers/iio/adc/twl6030-gpadc.c ret = gpadc->pdata->start_conversion(chan->channel); gpadc 515 drivers/iio/adc/twl6030-gpadc.c dev_err(gpadc->dev, "failed to start conversion\n"); gpadc 520 drivers/iio/adc/twl6030-gpadc.c &gpadc->irq_complete, msecs_to_jiffies(5000)); gpadc 531 drivers/iio/adc/twl6030-gpadc.c ret = twl6030_gpadc_get_raw(gpadc, chan->channel, val); gpadc 536 drivers/iio/adc/twl6030-gpadc.c ret = twl6030_gpadc_get_processed(gpadc, chan->channel, val); gpadc 544 drivers/iio/adc/twl6030-gpadc.c mutex_unlock(&gpadc->lock); gpadc 560 drivers/iio/adc/twl6030-gpadc.c static void twl6030_calibrate_channel(struct twl6030_gpadc_data *gpadc, gpadc 564 drivers/iio/adc/twl6030-gpadc.c const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; gpadc 566 drivers/iio/adc/twl6030-gpadc.c i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); gpadc 581 drivers/iio/adc/twl6030-gpadc.c gpadc->twl6030_cal_tbl[i].gain = gain; gpadc 582 drivers/iio/adc/twl6030-gpadc.c gpadc->twl6030_cal_tbl[i].gain_error = k; gpadc 583 drivers/iio/adc/twl6030-gpadc.c gpadc->twl6030_cal_tbl[i].offset_error = b; gpadc 585 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC d1 for Chn: %d = %d\n", channel, d1); gpadc 586 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC d2 for Chn: %d = %d\n", channel, d2); gpadc 587 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC x1 for Chn: %d = %d\n", channel, x1); gpadc 588 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC x2 for Chn: %d = %d\n", channel, x2); gpadc 589 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC Gain for Chn: %d = %d\n", channel, gain); gpadc 590 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC k for Chn: %d = %d\n", channel, k); gpadc 591 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC b for Chn: %d = %d\n", channel, b); gpadc 608 drivers/iio/adc/twl6030-gpadc.c static int twl6030_calibration(struct twl6030_gpadc_data *gpadc) gpadc 625 drivers/iio/adc/twl6030-gpadc.c dev_err(gpadc->dev, "calibration failed\n"); gpadc 675 drivers/iio/adc/twl6030-gpadc.c twl6030_calibrate_channel(gpadc, chn, d1, d2); gpadc 695 drivers/iio/adc/twl6030-gpadc.c static int twl6032_calibration(struct twl6030_gpadc_data *gpadc) gpadc 704 drivers/iio/adc/twl6030-gpadc.c dev_err(gpadc->dev, "calibration failed\n"); gpadc 783 drivers/iio/adc/twl6030-gpadc.c twl6030_calibrate_channel(gpadc, chn, d1, d2); gpadc 868 drivers/iio/adc/twl6030-gpadc.c struct twl6030_gpadc_data *gpadc; gpadc 881 drivers/iio/adc/twl6030-gpadc.c indio_dev = devm_iio_device_alloc(dev, sizeof(*gpadc)); gpadc 885 drivers/iio/adc/twl6030-gpadc.c gpadc = iio_priv(indio_dev); gpadc 887 drivers/iio/adc/twl6030-gpadc.c gpadc->twl6030_cal_tbl = devm_kcalloc(dev, gpadc 889 drivers/iio/adc/twl6030-gpadc.c sizeof(*gpadc->twl6030_cal_tbl), gpadc 891 drivers/iio/adc/twl6030-gpadc.c if (!gpadc->twl6030_cal_tbl) gpadc 894 drivers/iio/adc/twl6030-gpadc.c gpadc->dev = dev; gpadc 895 drivers/iio/adc/twl6030-gpadc.c gpadc->pdata = pdata; gpadc 898 drivers/iio/adc/twl6030-gpadc.c mutex_init(&gpadc->lock); gpadc 899 drivers/iio/adc/twl6030-gpadc.c init_completion(&gpadc->irq_complete); gpadc 901 drivers/iio/adc/twl6030-gpadc.c ret = pdata->calibrate(gpadc); gpadc 1653 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1655 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1656 drivers/mfd/ab8500-debugfs.c bat_ctrl_raw = ab8500_gpadc_read_raw(gpadc, BAT_CTRL, gpadc 1658 drivers/mfd/ab8500-debugfs.c bat_ctrl_convert = ab8500_gpadc_ad_to_voltage(gpadc, gpadc 1672 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1674 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1675 drivers/mfd/ab8500-debugfs.c btemp_ball_raw = ab8500_gpadc_read_raw(gpadc, BTEMP_BALL, gpadc 1677 drivers/mfd/ab8500-debugfs.c btemp_ball_convert = ab8500_gpadc_ad_to_voltage(gpadc, BTEMP_BALL, gpadc 1691 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1693 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1694 drivers/mfd/ab8500-debugfs.c main_charger_v_raw = ab8500_gpadc_read_raw(gpadc, MAIN_CHARGER_V, gpadc 1696 drivers/mfd/ab8500-debugfs.c main_charger_v_convert = ab8500_gpadc_ad_to_voltage(gpadc, gpadc 1710 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1712 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1713 drivers/mfd/ab8500-debugfs.c acc_detect1_raw = ab8500_gpadc_read_raw(gpadc, ACC_DETECT1, gpadc 1715 drivers/mfd/ab8500-debugfs.c acc_detect1_convert = ab8500_gpadc_ad_to_voltage(gpadc, ACC_DETECT1, gpadc 1729 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1731 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1732 drivers/mfd/ab8500-debugfs.c acc_detect2_raw = ab8500_gpadc_read_raw(gpadc, ACC_DETECT2, gpadc 1734 drivers/mfd/ab8500-debugfs.c acc_detect2_convert = ab8500_gpadc_ad_to_voltage(gpadc, gpadc 1748 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1750 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1751 drivers/mfd/ab8500-debugfs.c aux1_raw = ab8500_gpadc_read_raw(gpadc, ADC_AUX1, gpadc 1753 drivers/mfd/ab8500-debugfs.c aux1_convert = ab8500_gpadc_ad_to_voltage(gpadc, ADC_AUX1, gpadc 1767 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1769 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1770 drivers/mfd/ab8500-debugfs.c aux2_raw = ab8500_gpadc_read_raw(gpadc, ADC_AUX2, gpadc 1772 drivers/mfd/ab8500-debugfs.c aux2_convert = ab8500_gpadc_ad_to_voltage(gpadc, ADC_AUX2, gpadc 1786 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1788 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1789 drivers/mfd/ab8500-debugfs.c main_bat_v_raw = ab8500_gpadc_read_raw(gpadc, MAIN_BAT_V, gpadc 1791 drivers/mfd/ab8500-debugfs.c main_bat_v_convert = ab8500_gpadc_ad_to_voltage(gpadc, MAIN_BAT_V, gpadc 1805 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1807 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1808 drivers/mfd/ab8500-debugfs.c vbus_v_raw = ab8500_gpadc_read_raw(gpadc, VBUS_V, gpadc 1810 drivers/mfd/ab8500-debugfs.c vbus_v_convert = ab8500_gpadc_ad_to_voltage(gpadc, VBUS_V, gpadc 1824 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1826 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1827 drivers/mfd/ab8500-debugfs.c main_charger_c_raw = ab8500_gpadc_read_raw(gpadc, MAIN_CHARGER_C, gpadc 1829 drivers/mfd/ab8500-debugfs.c main_charger_c_convert = ab8500_gpadc_ad_to_voltage(gpadc, gpadc 1843 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1845 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1846 drivers/mfd/ab8500-debugfs.c usb_charger_c_raw = ab8500_gpadc_read_raw(gpadc, USB_CHARGER_C, gpadc 1848 drivers/mfd/ab8500-debugfs.c usb_charger_c_convert = ab8500_gpadc_ad_to_voltage(gpadc, gpadc 1862 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1864 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1865 drivers/mfd/ab8500-debugfs.c bk_bat_v_raw = ab8500_gpadc_read_raw(gpadc, BK_BAT_V, gpadc 1867 drivers/mfd/ab8500-debugfs.c bk_bat_v_convert = ab8500_gpadc_ad_to_voltage(gpadc, gpadc 1881 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1883 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1884 drivers/mfd/ab8500-debugfs.c die_temp_raw = ab8500_gpadc_read_raw(gpadc, DIE_TEMP, gpadc 1886 drivers/mfd/ab8500-debugfs.c die_temp_convert = ab8500_gpadc_ad_to_voltage(gpadc, DIE_TEMP, gpadc 1900 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1902 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1903 drivers/mfd/ab8500-debugfs.c usb_id_raw = ab8500_gpadc_read_raw(gpadc, USB_ID, gpadc 1905 drivers/mfd/ab8500-debugfs.c usb_id_convert = ab8500_gpadc_ad_to_voltage(gpadc, USB_ID, gpadc 1919 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1921 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1922 drivers/mfd/ab8500-debugfs.c xtal_temp_raw = ab8500_gpadc_read_raw(gpadc, XTAL_TEMP, gpadc 1924 drivers/mfd/ab8500-debugfs.c xtal_temp_convert = ab8500_gpadc_ad_to_voltage(gpadc, XTAL_TEMP, gpadc 1938 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1940 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1941 drivers/mfd/ab8500-debugfs.c vbat_true_meas_raw = ab8500_gpadc_read_raw(gpadc, VBAT_TRUE_MEAS, gpadc 1944 drivers/mfd/ab8500-debugfs.c ab8500_gpadc_ad_to_voltage(gpadc, VBAT_TRUE_MEAS, gpadc 1960 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1962 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1963 drivers/mfd/ab8500-debugfs.c bat_ctrl_raw = ab8500_gpadc_double_read_raw(gpadc, BAT_CTRL_AND_IBAT, gpadc 1966 drivers/mfd/ab8500-debugfs.c bat_ctrl_convert = ab8500_gpadc_ad_to_voltage(gpadc, BAT_CTRL, gpadc 1968 drivers/mfd/ab8500-debugfs.c ibat_convert = ab8500_gpadc_ad_to_voltage(gpadc, IBAT_VIRTUAL_CHANNEL, gpadc 1988 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 1990 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 1991 drivers/mfd/ab8500-debugfs.c vbat_meas_raw = ab8500_gpadc_double_read_raw(gpadc, VBAT_MEAS_AND_IBAT, gpadc 1993 drivers/mfd/ab8500-debugfs.c vbat_meas_convert = ab8500_gpadc_ad_to_voltage(gpadc, MAIN_BAT_V, gpadc 1995 drivers/mfd/ab8500-debugfs.c ibat_convert = ab8500_gpadc_ad_to_voltage(gpadc, IBAT_VIRTUAL_CHANNEL, gpadc 2015 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 2017 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 2018 drivers/mfd/ab8500-debugfs.c vbat_true_meas_raw = ab8500_gpadc_double_read_raw(gpadc, gpadc 2021 drivers/mfd/ab8500-debugfs.c vbat_true_meas_convert = ab8500_gpadc_ad_to_voltage(gpadc, gpadc 2023 drivers/mfd/ab8500-debugfs.c ibat_convert = ab8500_gpadc_ad_to_voltage(gpadc, IBAT_VIRTUAL_CHANNEL, gpadc 2043 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 2045 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 2046 drivers/mfd/ab8500-debugfs.c bat_temp_raw = ab8500_gpadc_double_read_raw(gpadc, BAT_TEMP_AND_IBAT, gpadc 2048 drivers/mfd/ab8500-debugfs.c bat_temp_convert = ab8500_gpadc_ad_to_voltage(gpadc, BTEMP_BALL, gpadc 2050 drivers/mfd/ab8500-debugfs.c ibat_convert = ab8500_gpadc_ad_to_voltage(gpadc, IBAT_VIRTUAL_CHANNEL, gpadc 2066 drivers/mfd/ab8500-debugfs.c struct ab8500_gpadc *gpadc; gpadc 2070 drivers/mfd/ab8500-debugfs.c gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 2071 drivers/mfd/ab8500-debugfs.c ab8540_gpadc_get_otp(gpadc, &vmain_l, &vmain_h, &btemp_l, &btemp_h, gpadc 178 drivers/mfd/ab8500-gpadc.c struct ab8500_gpadc *gpadc; gpadc 180 drivers/mfd/ab8500-gpadc.c list_for_each_entry(gpadc, &ab8500_gpadc_list, node) { gpadc 181 drivers/mfd/ab8500-gpadc.c if (!strcmp(name, dev_name(gpadc->dev))) gpadc 182 drivers/mfd/ab8500-gpadc.c return gpadc; gpadc 192 drivers/mfd/ab8500-gpadc.c int ab8500_gpadc_ad_to_voltage(struct ab8500_gpadc *gpadc, u8 channel, gpadc 200 drivers/mfd/ab8500-gpadc.c if (!gpadc->cal_data[ADC_INPUT_VMAIN].gain) { gpadc 207 drivers/mfd/ab8500-gpadc.c res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VMAIN].gain + gpadc 208 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].offset) / CALIB_SCALE; gpadc 218 drivers/mfd/ab8500-gpadc.c if (!gpadc->cal_data[ADC_INPUT_BTEMP].gain) { gpadc 225 drivers/mfd/ab8500-gpadc.c res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_BTEMP].gain + gpadc 226 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].offset) / CALIB_SCALE; gpadc 232 drivers/mfd/ab8500-gpadc.c if (!gpadc->cal_data[ADC_INPUT_VBAT].gain) { gpadc 239 drivers/mfd/ab8500-gpadc.c res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VBAT].gain + gpadc 240 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].offset) / CALIB_SCALE; gpadc 276 drivers/mfd/ab8500-gpadc.c if (!gpadc->cal_data[ADC_INPUT_IBAT].gain) { gpadc 283 drivers/mfd/ab8500-gpadc.c res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_IBAT].gain + gpadc 284 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].offset) gpadc 289 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 310 drivers/mfd/ab8500-gpadc.c int ab8500_gpadc_sw_hw_convert(struct ab8500_gpadc *gpadc, u8 channel, gpadc 316 drivers/mfd/ab8500-gpadc.c ad_value = ab8500_gpadc_read_raw(gpadc, channel, avg_sample, gpadc 321 drivers/mfd/ab8500-gpadc.c ad_value = ab8500_gpadc_read_raw(gpadc, channel, avg_sample, gpadc 324 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "GPADC raw value failed ch: %d\n", gpadc 329 drivers/mfd/ab8500-gpadc.c voltage = ab8500_gpadc_ad_to_voltage(gpadc, channel, ad_value); gpadc 331 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 350 drivers/mfd/ab8500-gpadc.c int ab8500_gpadc_read_raw(struct ab8500_gpadc *gpadc, u8 channel, gpadc 353 drivers/mfd/ab8500-gpadc.c return ab8500_gpadc_double_read_raw(gpadc, channel, avg_sample, gpadc 358 drivers/mfd/ab8500-gpadc.c int ab8500_gpadc_double_read_raw(struct ab8500_gpadc *gpadc, u8 channel, gpadc 371 drivers/mfd/ab8500-gpadc.c if (!gpadc) gpadc 375 drivers/mfd/ab8500-gpadc.c if ((gpadc->irq_sw < 0) && (conv_type == ADC_SW)) gpadc 377 drivers/mfd/ab8500-gpadc.c if ((gpadc->irq_hw < 0) && (conv_type == ADC_HW)) gpadc 380 drivers/mfd/ab8500-gpadc.c mutex_lock(&gpadc->ab8500_gpadc_lock); gpadc 382 drivers/mfd/ab8500-gpadc.c pm_runtime_get_sync(gpadc->dev); gpadc 386 drivers/mfd/ab8500-gpadc.c ret = abx500_get_register_interruptible(gpadc->dev, gpadc 395 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "gpadc_conversion: GPADC busy"); gpadc 420 drivers/mfd/ab8500-gpadc.c ret = abx500_set_register_interruptible(gpadc->dev, gpadc 426 drivers/mfd/ab8500-gpadc.c ret = abx500_set_register_interruptible(gpadc->dev, gpadc 429 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 445 drivers/mfd/ab8500-gpadc.c if (!is_ab8500_2p0_or_earlier(gpadc->parent)) { gpadc 462 drivers/mfd/ab8500-gpadc.c ret = abx500_set_register_interruptible(gpadc->dev, gpadc 465 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 475 drivers/mfd/ab8500-gpadc.c ret = abx500_set_register_interruptible(gpadc->dev, gpadc 478 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 487 drivers/mfd/ab8500-gpadc.c ret = abx500_mask_and_set_register_interruptible(gpadc->dev, gpadc 491 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 501 drivers/mfd/ab8500-gpadc.c if (!wait_for_completion_timeout(&gpadc->ab8500_gpadc_complete, gpadc 503 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 510 drivers/mfd/ab8500-gpadc.c ret = abx500_get_register_interruptible(gpadc->dev, gpadc 513 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "gpadc_conversion: read low data failed\n"); gpadc 517 drivers/mfd/ab8500-gpadc.c ret = abx500_get_register_interruptible(gpadc->dev, gpadc 520 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "gpadc_conversion: read high data failed\n"); gpadc 533 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 538 drivers/mfd/ab8500-gpadc.c ret = abx500_get_register_interruptible(gpadc->dev, gpadc 542 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 547 drivers/mfd/ab8500-gpadc.c ret = abx500_get_register_interruptible(gpadc->dev, gpadc 551 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 558 drivers/mfd/ab8500-gpadc.c dev_warn(gpadc->dev, gpadc 566 drivers/mfd/ab8500-gpadc.c ret = abx500_set_register_interruptible(gpadc->dev, AB8500_GPADC, gpadc 569 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "gpadc_conversion: disable gpadc failed\n"); gpadc 574 drivers/mfd/ab8500-gpadc.c pm_runtime_mark_last_busy(gpadc->dev); gpadc 575 drivers/mfd/ab8500-gpadc.c pm_runtime_put_autosuspend(gpadc->dev); gpadc 577 drivers/mfd/ab8500-gpadc.c mutex_unlock(&gpadc->ab8500_gpadc_lock); gpadc 588 drivers/mfd/ab8500-gpadc.c (void) abx500_set_register_interruptible(gpadc->dev, AB8500_GPADC, gpadc 590 drivers/mfd/ab8500-gpadc.c pm_runtime_put(gpadc->dev); gpadc 591 drivers/mfd/ab8500-gpadc.c mutex_unlock(&gpadc->ab8500_gpadc_lock); gpadc 592 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 610 drivers/mfd/ab8500-gpadc.c struct ab8500_gpadc *gpadc = _gpadc; gpadc 612 drivers/mfd/ab8500-gpadc.c complete(&gpadc->ab8500_gpadc_complete); gpadc 633 drivers/mfd/ab8500-gpadc.c static void ab8500_gpadc_read_calibration_data(struct ab8500_gpadc *gpadc) gpadc 647 drivers/mfd/ab8500-gpadc.c ab8500 = gpadc->parent; gpadc 651 drivers/mfd/ab8500-gpadc.c ret[i] = abx500_get_register_interruptible(gpadc->dev, gpadc 654 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "%s: read otp reg 0x%02x failed\n", gpadc 733 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].otp_calib_hi = gpadc 735 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].otp_calib_lo = gpadc 738 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain = CALIB_SCALE * gpadc 740 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].offset = CALIB_SCALE * gpadc 744 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain = 0; gpadc 750 drivers/mfd/ab8500-gpadc.c gpadc->dev, AB8500_OTP_EMUL, gpadc 753 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 765 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].otp_calib_hi = gpadc 767 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].otp_calib_lo = gpadc 788 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].gain = gpadc 790 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].offset = gpadc 793 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].gain = 0; gpadc 796 drivers/mfd/ab8500-gpadc.c dev_dbg(gpadc->dev, "IBAT gain %llu offset %llu\n", gpadc 797 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].gain, gpadc 798 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].offset); gpadc 807 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].otp_calib_hi = gpadc 809 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].otp_calib_lo = gpadc 812 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain = CALIB_SCALE * gpadc 815 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].offset = CALIB_SCALE * gpadc 819 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain = 0; gpadc 829 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].otp_calib_hi = (u16)btemp_high; gpadc 830 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].otp_calib_lo = (u16)btemp_low; gpadc 832 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].gain = gpadc 834 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].offset = CALIB_SCALE * 1300 - gpadc 838 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].gain = 0; gpadc 846 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].otp_calib_hi = (u16)vbat_high; gpadc 847 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].otp_calib_lo = (u16)vbat_low; gpadc 849 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].gain = CALIB_SCALE * gpadc 851 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].offset = CALIB_SCALE * 4700 - gpadc 855 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].gain = 0; gpadc 858 drivers/mfd/ab8500-gpadc.c dev_dbg(gpadc->dev, "VMAIN gain %llu offset %llu\n", gpadc 859 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain, gpadc 860 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].offset); gpadc 862 drivers/mfd/ab8500-gpadc.c dev_dbg(gpadc->dev, "BTEMP gain %llu offset %llu\n", gpadc 863 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].gain, gpadc 864 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].offset); gpadc 866 drivers/mfd/ab8500-gpadc.c dev_dbg(gpadc->dev, "VBAT gain %llu offset %llu\n", gpadc 867 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].gain, gpadc 868 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].offset); gpadc 874 drivers/mfd/ab8500-gpadc.c struct ab8500_gpadc *gpadc = dev_get_drvdata(dev); gpadc 876 drivers/mfd/ab8500-gpadc.c regulator_disable(gpadc->regu); gpadc 882 drivers/mfd/ab8500-gpadc.c struct ab8500_gpadc *gpadc = dev_get_drvdata(dev); gpadc 885 drivers/mfd/ab8500-gpadc.c ret = regulator_enable(gpadc->regu); gpadc 895 drivers/mfd/ab8500-gpadc.c struct ab8500_gpadc *gpadc = dev_get_drvdata(dev); gpadc 897 drivers/mfd/ab8500-gpadc.c mutex_lock(&gpadc->ab8500_gpadc_lock); gpadc 901 drivers/mfd/ab8500-gpadc.c regulator_disable(gpadc->regu); gpadc 907 drivers/mfd/ab8500-gpadc.c struct ab8500_gpadc *gpadc = dev_get_drvdata(dev); gpadc 910 drivers/mfd/ab8500-gpadc.c ret = regulator_enable(gpadc->regu); gpadc 914 drivers/mfd/ab8500-gpadc.c pm_runtime_mark_last_busy(gpadc->dev); gpadc 915 drivers/mfd/ab8500-gpadc.c pm_runtime_put_autosuspend(gpadc->dev); gpadc 917 drivers/mfd/ab8500-gpadc.c mutex_unlock(&gpadc->ab8500_gpadc_lock); gpadc 925 drivers/mfd/ab8500-gpadc.c struct ab8500_gpadc *gpadc; gpadc 927 drivers/mfd/ab8500-gpadc.c gpadc = devm_kzalloc(&pdev->dev, gpadc 929 drivers/mfd/ab8500-gpadc.c if (!gpadc) gpadc 932 drivers/mfd/ab8500-gpadc.c gpadc->irq_sw = platform_get_irq_byname(pdev, "SW_CONV_END"); gpadc 933 drivers/mfd/ab8500-gpadc.c if (gpadc->irq_sw < 0) gpadc 934 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "failed to get platform sw_conv_end irq\n"); gpadc 936 drivers/mfd/ab8500-gpadc.c gpadc->irq_hw = platform_get_irq_byname(pdev, "HW_CONV_END"); gpadc 937 drivers/mfd/ab8500-gpadc.c if (gpadc->irq_hw < 0) gpadc 938 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "failed to get platform hw_conv_end irq\n"); gpadc 940 drivers/mfd/ab8500-gpadc.c gpadc->dev = &pdev->dev; gpadc 941 drivers/mfd/ab8500-gpadc.c gpadc->parent = dev_get_drvdata(pdev->dev.parent); gpadc 942 drivers/mfd/ab8500-gpadc.c mutex_init(&gpadc->ab8500_gpadc_lock); gpadc 945 drivers/mfd/ab8500-gpadc.c init_completion(&gpadc->ab8500_gpadc_complete); gpadc 948 drivers/mfd/ab8500-gpadc.c if (gpadc->irq_sw >= 0) { gpadc 949 drivers/mfd/ab8500-gpadc.c ret = request_threaded_irq(gpadc->irq_sw, NULL, gpadc 953 drivers/mfd/ab8500-gpadc.c gpadc); gpadc 955 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 957 drivers/mfd/ab8500-gpadc.c gpadc->irq_sw); gpadc 962 drivers/mfd/ab8500-gpadc.c if (gpadc->irq_hw >= 0) { gpadc 963 drivers/mfd/ab8500-gpadc.c ret = request_threaded_irq(gpadc->irq_hw, NULL, gpadc 967 drivers/mfd/ab8500-gpadc.c gpadc); gpadc 969 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, gpadc 971 drivers/mfd/ab8500-gpadc.c gpadc->irq_hw); gpadc 977 drivers/mfd/ab8500-gpadc.c gpadc->regu = devm_regulator_get(&pdev->dev, "vddadc"); gpadc 978 drivers/mfd/ab8500-gpadc.c if (IS_ERR(gpadc->regu)) { gpadc 979 drivers/mfd/ab8500-gpadc.c ret = PTR_ERR(gpadc->regu); gpadc 980 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "failed to get vtvout LDO\n"); gpadc 984 drivers/mfd/ab8500-gpadc.c platform_set_drvdata(pdev, gpadc); gpadc 986 drivers/mfd/ab8500-gpadc.c ret = regulator_enable(gpadc->regu); gpadc 988 drivers/mfd/ab8500-gpadc.c dev_err(gpadc->dev, "Failed to enable vtvout LDO: %d\n", ret); gpadc 992 drivers/mfd/ab8500-gpadc.c pm_runtime_set_autosuspend_delay(gpadc->dev, GPADC_AUDOSUSPEND_DELAY); gpadc 993 drivers/mfd/ab8500-gpadc.c pm_runtime_use_autosuspend(gpadc->dev); gpadc 994 drivers/mfd/ab8500-gpadc.c pm_runtime_set_active(gpadc->dev); gpadc 995 drivers/mfd/ab8500-gpadc.c pm_runtime_enable(gpadc->dev); gpadc 997 drivers/mfd/ab8500-gpadc.c ab8500_gpadc_read_calibration_data(gpadc); gpadc 998 drivers/mfd/ab8500-gpadc.c list_add_tail(&gpadc->node, &ab8500_gpadc_list); gpadc 999 drivers/mfd/ab8500-gpadc.c dev_dbg(gpadc->dev, "probe success\n"); gpadc 1005 drivers/mfd/ab8500-gpadc.c free_irq(gpadc->irq_sw, gpadc); gpadc 1006 drivers/mfd/ab8500-gpadc.c free_irq(gpadc->irq_hw, gpadc); gpadc 1013 drivers/mfd/ab8500-gpadc.c struct ab8500_gpadc *gpadc = platform_get_drvdata(pdev); gpadc 1016 drivers/mfd/ab8500-gpadc.c list_del(&gpadc->node); gpadc 1018 drivers/mfd/ab8500-gpadc.c if (gpadc->irq_sw >= 0) gpadc 1019 drivers/mfd/ab8500-gpadc.c free_irq(gpadc->irq_sw, gpadc); gpadc 1020 drivers/mfd/ab8500-gpadc.c if (gpadc->irq_hw >= 0) gpadc 1021 drivers/mfd/ab8500-gpadc.c free_irq(gpadc->irq_hw, gpadc); gpadc 1023 drivers/mfd/ab8500-gpadc.c pm_runtime_get_sync(gpadc->dev); gpadc 1024 drivers/mfd/ab8500-gpadc.c pm_runtime_disable(gpadc->dev); gpadc 1026 drivers/mfd/ab8500-gpadc.c regulator_disable(gpadc->regu); gpadc 1028 drivers/mfd/ab8500-gpadc.c pm_runtime_set_suspended(gpadc->dev); gpadc 1030 drivers/mfd/ab8500-gpadc.c pm_runtime_put_noidle(gpadc->dev); gpadc 1063 drivers/mfd/ab8500-gpadc.c void ab8540_gpadc_get_otp(struct ab8500_gpadc *gpadc, gpadc 1067 drivers/mfd/ab8500-gpadc.c *vmain_l = gpadc->cal_data[ADC_INPUT_VMAIN].otp_calib_lo; gpadc 1068 drivers/mfd/ab8500-gpadc.c *vmain_h = gpadc->cal_data[ADC_INPUT_VMAIN].otp_calib_hi; gpadc 1069 drivers/mfd/ab8500-gpadc.c *btemp_l = gpadc->cal_data[ADC_INPUT_BTEMP].otp_calib_lo; gpadc 1070 drivers/mfd/ab8500-gpadc.c *btemp_h = gpadc->cal_data[ADC_INPUT_BTEMP].otp_calib_hi; gpadc 1071 drivers/mfd/ab8500-gpadc.c *vbat_l = gpadc->cal_data[ADC_INPUT_VBAT].otp_calib_lo; gpadc 1072 drivers/mfd/ab8500-gpadc.c *vbat_h = gpadc->cal_data[ADC_INPUT_VBAT].otp_calib_hi; gpadc 1073 drivers/mfd/ab8500-gpadc.c *ibat_l = gpadc->cal_data[ADC_INPUT_IBAT].otp_calib_lo; gpadc 1074 drivers/mfd/ab8500-gpadc.c *ibat_h = gpadc->cal_data[ADC_INPUT_IBAT].otp_calib_hi; gpadc 99 drivers/power/supply/ab8500_btemp.c struct ab8500_gpadc *gpadc; gpadc 183 drivers/power/supply/ab8500_btemp.c vbtemp = ab8500_gpadc_convert(di->gpadc, BAT_CTRL); gpadc 483 drivers/power/supply/ab8500_btemp.c vntc = ab8500_gpadc_convert(di->gpadc, BTEMP_BALL); gpadc 1027 drivers/power/supply/ab8500_btemp.c di->gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 286 drivers/power/supply/ab8500_charger.c struct ab8500_gpadc *gpadc; gpadc 466 drivers/power/supply/ab8500_charger.c vch = ab8500_gpadc_convert(di->gpadc, MAIN_CHARGER_V); gpadc 517 drivers/power/supply/ab8500_charger.c vch = ab8500_gpadc_convert(di->gpadc, VBUS_V); gpadc 539 drivers/power/supply/ab8500_charger.c ich = ab8500_gpadc_convert(di->gpadc, USB_CHARGER_C); gpadc 561 drivers/power/supply/ab8500_charger.c ich = ab8500_gpadc_convert(di->gpadc, MAIN_CHARGER_C); gpadc 3374 drivers/power/supply/ab8500_charger.c di->gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 227 drivers/power/supply/ab8500_fg.c struct ab8500_gpadc *gpadc; gpadc 835 drivers/power/supply/ab8500_fg.c vbat = ab8500_gpadc_convert(di->gpadc, MAIN_BAT_V); gpadc 3069 drivers/power/supply/ab8500_fg.c di->gpadc = ab8500_gpadc_get("ab8500-gpadc.0"); gpadc 56 include/linux/mfd/abx500/ab8500-gpadc.h int ab8500_gpadc_sw_hw_convert(struct ab8500_gpadc *gpadc, u8 channel, gpadc 58 include/linux/mfd/abx500/ab8500-gpadc.h static inline int ab8500_gpadc_convert(struct ab8500_gpadc *gpadc, u8 channel) gpadc 60 include/linux/mfd/abx500/ab8500-gpadc.h return ab8500_gpadc_sw_hw_convert(gpadc, channel, gpadc 64 include/linux/mfd/abx500/ab8500-gpadc.h int ab8500_gpadc_read_raw(struct ab8500_gpadc *gpadc, u8 channel, gpadc 66 include/linux/mfd/abx500/ab8500-gpadc.h int ab8500_gpadc_double_read_raw(struct ab8500_gpadc *gpadc, u8 channel, gpadc 69 include/linux/mfd/abx500/ab8500-gpadc.h int ab8500_gpadc_ad_to_voltage(struct ab8500_gpadc *gpadc, gpadc 71 include/linux/mfd/abx500/ab8500-gpadc.h void ab8540_gpadc_get_otp(struct ab8500_gpadc *gpadc, gpadc 81 include/linux/mfd/palmas.h struct palmas_gpadc *gpadc;