diff mbox

[RFC] iio: dac: cmpfunc() can be static

Message ID 20180628153709.GA31782@lkp-ib03 (mailing list archive)
State New, archived
Headers show

Commit Message

Fengguang Wu June 28, 2018, 3:37 p.m. UTC
Fixes: 2c1562568d29 ("iio: dac: Add AD5758 support")
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
---
 ad5758.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);
 }