iio:dac:mcp4725 wrong return type of attribute _show function

Should be ssize_t and is int.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reported-by: Fengguan Wu <fengguang.wu@intel.com>
Acked-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
Jonathan Cameron 2013-07-12 20:54:00 +01:00
parent a67c385a2e
commit 4fd313da04
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ static SIMPLE_DEV_PM_OPS(mcp4725_pm_ops, mcp4725_suspend, mcp4725_resume);
#define MCP4725_PM_OPS NULL
#endif
static int mcp4725_store_eeprom(struct device *dev,
static ssize_t mcp4725_store_eeprom(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len)
{
struct iio_dev *indio_dev = dev_to_iio_dev(dev);