aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkbuild test robot <[email protected]>2018-01-10 23:23:05 +0800
committerMark Brown <[email protected]>2018-01-10 15:35:20 +0000
commit9ae148f80a96a91b636ab0b57d24d4440b919817 (patch)
tree33c874c259c78e42e50bf874428f03e31bb5e181
parent16cbca06fa8288a4f58426fc898b141e12ee8008 (diff)
IIO: ADC: stm32_dfsdm_stop_filter() can be static
Fixes: e2e6771c6462 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support") Signed-off-by: Fengguang Wu <[email protected]> Acked-by: Arnaud Pouliquen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--drivers/iio/adc/stm32-dfsdm-adc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c
index b03ca3f94331..e628d04d5c77 100644
--- a/drivers/iio/adc/stm32-dfsdm-adc.c
+++ b/drivers/iio/adc/stm32-dfsdm-adc.c
@@ -254,7 +254,7 @@ static int stm32_dfsdm_start_filter(struct stm32_dfsdm *dfsdm,
DFSDM_CR1_RSWSTART(1));
}
-void stm32_dfsdm_stop_filter(struct stm32_dfsdm *dfsdm, unsigned int fl_id)
+static void stm32_dfsdm_stop_filter(struct stm32_dfsdm *dfsdm, unsigned int fl_id)
{
/* Disable conversion */
regmap_update_bits(dfsdm->regmap, DFSDM_CR1(fl_id),
@@ -296,9 +296,9 @@ static int stm32_dfsdm_filter_configure(struct stm32_dfsdm *dfsdm,
DFSDM_CR1_RSYNC(fl->sync_mode));
}
-int stm32_dfsdm_channel_parse_of(struct stm32_dfsdm *dfsdm,
- struct iio_dev *indio_dev,
- struct iio_chan_spec *ch)
+static int stm32_dfsdm_channel_parse_of(struct stm32_dfsdm *dfsdm,
+ struct iio_dev *indio_dev,
+ struct iio_chan_spec *ch)
{
struct stm32_dfsdm_channel *df_ch;
const char *of_str;