• Akinobu Mita's avatar
    iio: adc: ti-ads1015: enable conversion when CONFIG_PM is not set · e8245c68
    Akinobu Mita authored
    The ADS1015 device have two operating modes, continuous conversion mode
    and single-shot mode.  This driver assumes that the continuous conversion
    mode is selected by runtime resume callback when the ADC result is
    requested.
    
    If CONFIG_PM is disabled, the device is always in the default single-shot
    mode and no one begins a single conversion.  So the conversion register
    doesn't contain valid ADC result.  Fix it by changing the continuous mode
    in probe function.
    
    Cc: Daniel Baluta <daniel.baluta@gmail.com>
    Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
    Cc: <Stable@vger.kernel.org>
    Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
    e8245c68
ti-ads1015.c 18.2 KB