[RFC PATCH] iio: dac: cmpfunc() can be static
From: kbuild test robot
Date: Thu Jun 28 2018 - 11:37:36 EST
Fixes: 2c1562568d29 ("iio: dac: Add AD5758 support")
Signed-off-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
---
ad5758.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/dac/ad5758.c b/drivers/iio/dac/ad5758.c
index 2aaddf9..55c0a61 100644
--- a/drivers/iio/dac/ad5758.c
+++ b/drivers/iio/dac/ad5758.c
@@ -234,7 +234,7 @@ static int ad5758_spi_write_mask(struct ad5758_state *st,
return ad5758_spi_reg_write(st, addr, regval);
}
-int cmpfunc(const void *a, const void *b)
+static int cmpfunc(const void *a, const void *b)
{
return (*(int *)a - *(int *)b);
}