Lines Matching refs:da9055
33 struct da9055 *da9055; member
62 struct da9055 *da9055 = hwmon->da9055; in da9055_adc_manual_read() local
72 ret = da9055_reg_write(da9055, DA9055_REG_ADC_MAN, mux_sel); in da9055_adc_manual_read()
79 dev_err(da9055->dev, in da9055_adc_manual_read()
85 ret = da9055_reg_read(da9055, DA9055_REG_ADC_RES_H); in da9055_adc_manual_read()
92 ret = da9055_reg_read(da9055, DA9055_REG_ADC_RES_L); in da9055_adc_manual_read()
124 static int da9055_enable_auto_mode(struct da9055 *da9055, int channel) in da9055_enable_auto_mode() argument
127 return da9055_reg_update(da9055, DA9055_REG_ADC_CONT, 1 << channel, in da9055_enable_auto_mode()
132 static int da9055_disable_auto_mode(struct da9055 *da9055, int channel) in da9055_disable_auto_mode() argument
135 return da9055_reg_update(da9055, DA9055_REG_ADC_CONT, 1 << channel, 0); in da9055_disable_auto_mode()
148 ret = da9055_enable_auto_mode(hwmon->da9055, channel); in da9055_auto_ch_show()
154 adc = da9055_reg_read(hwmon->da9055, DA9055_REG_VSYS_RES + channel); in da9055_auto_ch_show()
160 ret = da9055_disable_auto_mode(hwmon->da9055, channel); in da9055_auto_ch_show()
169 da9055_disable_auto_mode(hwmon->da9055, channel); in da9055_auto_ch_show()
186 toffset = da9055_reg_read(hwmon->da9055, DA9055_REG_T_OFFSET); in da9055_tjunc_show()
232 ATTRIBUTE_GROUPS(da9055);
249 hwmon->da9055 = dev_get_drvdata(pdev->dev.parent); in da9055_hwmon_probe()
260 dev_err(hwmon->da9055->dev, "DA9055 ADC IRQ failed ret=%d\n", in da9055_hwmon_probe()