lkml.org 
[lkml]   [2022]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v6 10/12] iio: adc: qcom-spmi-adc5: add ADC5_VREF_VADC to rev2 ADC5
    Date
    Add support for ADC5_VREF_VADC channel to rev2 ADC5 channel list.
    This channel measures the VADC reference LDO output.

    Signed-off-by: Robert Marko <robimarko@gmail.com>
    ---
    drivers/iio/adc/qcom-spmi-adc5.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c
    index 87438d1e5c0b..7bd3745884f0 100644
    --- a/drivers/iio/adc/qcom-spmi-adc5.c
    +++ b/drivers/iio/adc/qcom-spmi-adc5.c
    @@ -589,6 +589,8 @@ static const struct adc5_channels adc5_chans_rev2[ADC5_MAX_CHANNEL] = {
    SCALE_HW_CALIB_DEFAULT)
    [ADC5_1P25VREF] = ADC5_CHAN_VOLT("vref_1p25", 0,
    SCALE_HW_CALIB_DEFAULT)
    + [ADC5_VREF_VADC] = ADC5_CHAN_VOLT("vref_vadc", 0,
    + SCALE_HW_CALIB_DEFAULT)
    [ADC5_VPH_PWR] = ADC5_CHAN_VOLT("vph_pwr", 1,
    SCALE_HW_CALIB_DEFAULT)
    [ADC5_VBAT_SNS] = ADC5_CHAN_VOLT("vbat_sns", 1,
    --
    2.36.1
    \
     
     \ /
      Last update: 2022-07-04 23:25    [W:4.633 / U:0.296 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site