diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-07-12 19:54:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-08-03 17:40:36 (GMT) |
commit | 4fd313da0430cb122d469abaadd5990f3d8af3f7 (patch) | |
tree | 76cbde2e2cf9eab33d1ad136febb3deaa29e9b6d | |
parent | a67c385a2e11eac4132909efc3eb9ee030d665a5 (diff) | |
download | linux-4fd313da0430cb122d469abaadd5990f3d8af3f7.tar.xz |
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>
-rw-r--r-- | drivers/iio/dac/mcp4725.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/mcp4725.c b/drivers/iio/dac/mcp4725.c index f569738..18a78cd 100644 --- a/drivers/iio/dac/mcp4725.c +++ b/drivers/iio/dac/mcp4725.c @@ -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); |