Skip to content

Commit

Permalink
iio: frequency: m2k-dac: fix match function type
Browse files Browse the repository at this point in the history
Error is:
```
drivers/iio/frequency/m2k-dac.c:507:7: error: passing argument 4 of ‘bus_find_device’ from incompatible pointer type [-Werror=incompatible-pointer-types]
       dds_dev_match);
```

The second parameter just needs a const specifier.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
  • Loading branch information
commodo committed Jul 20, 2020
1 parent aae3900 commit 81f4a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/frequency/m2k-dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ static int m2k_dac_alloc_channel(struct platform_device *pdev,
return 0;
}

static int dds_dev_match(struct device *dev, void *data)
static int dds_dev_match(struct device *dev, const void *data)
{
int ret;

Expand Down

0 comments on commit 81f4a4f

Please sign in to comment.