Hi Jacob,

> +#if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM_RUNTIME) static int 
> +axp288_gpadc_suspend(struct device *dev) {
> +     int ret;
> +     struct iio_dev *indio_dev = dev_get_drvdata(dev);
> +     struct gpadc_info *info = iio_priv(indio_dev);
> +
> +     mutex_lock(&indio_dev->mlock);
> +     ret = axp288_gpadc_enable(info->regmap, false);
> +     mutex_unlock(&indio_dev->mlock);
> +
> +     return ret;
> +}

AXP288 has integrated fuel gauge which relies on VBATT and IBATT ADC 
measurements. If we disable the ADC then Fuel Gauge will get stuck.
So for the proper functioning of this integrated fuel gauging ADC measurements 
should always be ON.

Thanks,
Ram
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to