Lines Matching refs:da9052
28 struct da9052 *da9052; member
62 static inline int da9052_enable_vddout_channel(struct da9052 *da9052) in da9052_enable_vddout_channel() argument
64 return da9052_reg_update(da9052, DA9052_ADC_CONT_REG, in da9052_enable_vddout_channel()
69 static inline int da9052_disable_vddout_channel(struct da9052 *da9052) in da9052_disable_vddout_channel() argument
71 return da9052_reg_update(da9052, DA9052_ADC_CONT_REG, in da9052_disable_vddout_channel()
83 ret = da9052_enable_vddout_channel(hwmon->da9052); in da9052_read_vddout()
87 vdd = da9052_reg_read(hwmon->da9052, DA9052_VDD_RES_REG); in da9052_read_vddout()
93 ret = da9052_disable_vddout_channel(hwmon->da9052); in da9052_read_vddout()
101 da9052_disable_vddout_channel(hwmon->da9052); in da9052_read_vddout()
113 ret = da9052_reg_read(hwmon->da9052, DA9052_ICHG_AV_REG); in da9052_read_ich()
126 return sprintf(buf, "%d\n", da9052_adc_read_temp(hwmon->da9052)); in da9052_read_tbat()
135 ret = da9052_adc_manual_read(hwmon->da9052, DA9052_ADC_VBAT); in da9052_read_vbat()
150 ret = da9052_adc_manual_read(hwmon->da9052, channel); in da9052_read_misc_channel()
164 tjunc = da9052_reg_read(hwmon->da9052, DA9052_TJUNC_RES_REG); in da9052_read_tjunc()
168 toffset = da9052_reg_read(hwmon->da9052, DA9052_T_OFFSET_REG); in da9052_read_tjunc()
185 ret = da9052_adc_manual_read(hwmon->da9052, DA9052_ADC_VBBAT); in da9052_read_vbbat()
260 ATTRIBUTE_GROUPS(da9052);
273 hwmon->da9052 = dev_get_drvdata(pdev->dev.parent); in da9052_hwmon_probe()