Skip to content

Commit 4fd313d

Browse files
committed
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>
1 parent a67c385 commit 4fd313d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/iio/dac/mcp4725.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static SIMPLE_DEV_PM_OPS(mcp4725_pm_ops, mcp4725_suspend, mcp4725_resume);
6969
#define MCP4725_PM_OPS NULL
7070
#endif
7171

72-
static int mcp4725_store_eeprom(struct device *dev,
72+
static ssize_t mcp4725_store_eeprom(struct device *dev,
7373
struct device_attribute *attr, const char *buf, size_t len)
7474
{
7575
struct iio_dev *indio_dev = dev_to_iio_dev(dev);

0 commit comments

Comments
 (0)