iio: dac: mcp4725: use regulator framework

Use a standard framework to get the reference voltage. It is done that way
in the iio subsystem and it will simplify extending of the driver.

Structure mcp4725_platform_data is left undeleted because it used in the
next patch.

This change breaks the current users of the driver, but there is no
mainline user of struct mcp4725_platform_data.

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Tomas Novotny
2016-10-11 15:57:40 +02:00
committed by Jonathan Cameron
parent 3f5def652f
commit b440f1d90e
2 changed files with 37 additions and 10 deletions

View File

@@ -10,7 +10,6 @@
#define IIO_DAC_MCP4725_H_
struct mcp4725_platform_data {
u16 vref_mv;
};
#endif /* IIO_DAC_MCP4725_H_ */