diff options
| author | Fabrice Gasnier <[email protected]> | 2019-04-15 11:47:22 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2019-04-22 11:34:14 +0100 |
| commit | 20c89b4d1dc4e7cc329d00edcaf7a7aa14278557 (patch) | |
| tree | 0e2690c570221b5f5f48bf88549f2f8716f1d8bd /tools/perf/scripts/python | |
| parent | 9c6126940d646e441c292422c0b33902263c5425 (diff) | |
iio: trigger: stm32-timer: fix build issue when disabled
This fixes a build issue when CONFIG_IIO_STM32_TIMER_TRIGGER isn't set but
used in stm32-dfsdm-adc driver (e.g. CONFIG_STM32_DFSDM_ADC is set):
ERROR: "is_stm32_timer_trigger" [drivers/iio/adc/stm32-dfsdm-adc.ko]
undefined!
There are two possible options to fix this issue:
- select IIO_STM32_TIMER_TRIGGER along with CONFIG_STM32_DFSDM_ADC.
This is what's being done currently for CONFIG_STM32_ADC.
- stub "is_stm32_timer_trigger" function
Choice is made to stub this function as suggested in [1]. This is also
inspired by similar "is_stm32_lptim_trigger" function (see [2]) in
include/linux/iio/timer/stm32-lptim-trigger.h
[1]
https://www.mail-archive.com/[email protected]/msg1977377.html
[2] https://lkml.org/lkml/2017/9/10/124
Fixes: 11646e81d775 ("iio: adc: stm32-dfsdm: add support for buffer modes")
Reported-by: Randy Dunlap <[email protected]>
Fix-suggested-by: Jonathan Cameron <[email protected]>
Signed-off-by: Fabrice Gasnier <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions