From: Jonathan Cameron Date: Fri, 12 Jul 2013 19:54:00 +0000 (+0100) Subject: iio:dac:mcp4725 wrong return type of attribute _show function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4fd313da0430cb122d469abaadd5990f3d8af3f7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iio:dac:mcp4725 wrong return type of attribute _show function Should be ssize_t and is int. Signed-off-by: Jonathan Cameron Reported-by: Fengguan Wu Acked-by: Peter Meerwald --- diff --git a/drivers/iio/dac/mcp4725.c b/drivers/iio/dac/mcp4725.c index f569738c94b1..18a78cd21e88 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);