提交 4fd313da 编写于 作者: J Jonathan Cameron

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

Should be ssize_t and is int.
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
Reported-by: NFengguan Wu <fengguang.wu@intel.com>
Acked-by: NPeter Meerwald <pmeerw@pmeerw.net>
上级 a67c385a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册