[PATCHv2 2/3] iio: ad5064: Explicitly configure whether to use external supply

2015-10-12 Thread Paul Cercueil
Previously the driver would revert to internal supply if the external supply couldn't be found. This had multiple problems: - it caused silently ignored errors when a regulator was intended to be supplied, but was not specified correctly. - if CONFIG_REGULATOR is disabled, regulator_get() will

[PATCHv2 2/3] iio: ad5064: Explicitly configure whether to use external supply

2015-10-12 Thread Paul Cercueil
Previously the driver would revert to internal supply if the external supply couldn't be found. This had multiple problems: - it caused silently ignored errors when a regulator was intended to be supplied, but was not specified correctly. - if CONFIG_REGULATOR is disabled, regulator_get() will