diff mbox

[RFC] Staging: iio: ade7758: __ade7758_spi_write_reg_8() can be static

Message ID 20180124185342.GA40461@xian (mailing list archive)
State New, archived
Headers show

Commit Message

kernel test robot Jan. 24, 2018, 6:53 p.m. UTC
Fixes: c1960999e575 ("Staging: iio: ade7758: Expand buf_lock to cover both buffer")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 ade7758_core.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
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/staging/iio/meter/ade7758_core.c b/drivers/staging/iio/meter/ade7758_core.c
index 7f8f8c4..5794ebb 100644
--- a/drivers/staging/iio/meter/ade7758_core.c
+++ b/drivers/staging/iio/meter/ade7758_core.c
@@ -25,7 +25,7 @@ 
 #include "ade7758.h"
 
 /* Unlocked version of ade7758_spi_write_reg_8 function */
-int __ade7758_spi_write_reg_8(struct device *dev, u8 reg_address, u8 val)
+static int __ade7758_spi_write_reg_8(struct device *dev, u8 reg_address, u8 val)
 {
 	struct iio_dev *indio_dev = dev_to_iio_dev(dev);
 	struct ade7758_state *st = iio_priv(indio_dev);
@@ -101,7 +101,7 @@  static int ade7758_spi_write_reg_24(struct device *dev, u8 reg_address,
 }
 
 /* Unlocked version of ade7758_spi_read_reg_16 function */
-int __ade7758_spi_read_reg_8(struct device *dev, u8 reg_address, u8 *val)
+static int __ade7758_spi_read_reg_8(struct device *dev, u8 reg_address, u8 *val)
 {
 	struct iio_dev *indio_dev = dev_to_iio_dev(dev);
 	struct ade7758_state *st = iio_priv(indio_dev);