• A
    hwmon: (ads7828) Enable internal reference · 7a18afe8
    Akshay Bhat 提交于
    On ads7828 the internal reference defaults to off upon power up. When
    using internal reference, it needs to be turned on and the voltage needs
    to settle before normal conversion cycle can be started. Hence perform a
    dummy read in the probe to enable the internal reference allowing the
    voltage to settle before performing a normal read.
    
    Without this fix, the first read from the ADC when using internal
    reference always returns incorrect data.
    Signed-off-by: NAkshay Bhat <akshay.bhat@timesys.com>
    Cc: stable@vger.kernel.org # v4.1+
    Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
    7a18afe8
ads7828.c 6.0 KB