linux_dsm_epyc7002/include/linux/iio
Fabrice Gasnier 20c89b4d1d 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/linux-kernel@vger.kernel.org/msg1977377.html
[2] https://lkml.org/lkml/2017/9/10/124

Fixes: 11646e81d7 ("iio: adc: stm32-dfsdm: add support for buffer modes")

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Fix-suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-04-22 11:34:14 +01:00
..
accel
adc iio: ad_sigma_delta: Properly handle SPI bus locking vs CS assertion 2019-04-04 20:21:15 +01:00
common iio: st_accel: use ACPI orientation data 2019-02-02 09:28:51 +00:00
dac License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
frequency iio: frequency: ad9523: Fix typo in ad9523_platform_data 2019-04-04 20:20:58 +01:00
gyro iio: gyro: itg3200: add mount matrix support 2019-04-04 20:19:47 +01:00
imu iio: imu: adis: generalize burst mode support 2019-04-04 20:20:24 +01:00
magnetometer License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
timer iio: trigger: stm32-timer: fix build issue when disabled 2019-04-22 11:34:14 +01:00
buffer_impl.h iio:buffer: make length types match kfifo types 2018-03-30 11:14:32 +01:00
buffer-dma.h iio: buffer: fix the function signature to match implementation 2018-06-24 14:23:21 +01:00
buffer-dmaengine.h iio: Add a DMAengine framework based buffer 2015-10-25 13:55:32 +00:00
buffer.h iio:buffer.h - split into buffer.h and buffer_impl.h 2017-01-10 19:54:55 +00:00
configfs.h iio:configfs: Introduce iio/configfs.h to provide a location for the configfs_subsystem 2015-12-05 16:25:30 +00:00
consumer.h IIO: consumer: allow to set buffer sizes 2018-01-10 10:30:14 +00:00
driver.h iio: Make possible to include driver.h first 2019-04-04 20:20:56 +01:00
events.h
hw-consumer.h IIO: hw_consumer: add devm_iio_hw_consumer_alloc 2018-01-10 10:30:07 +00:00
iio.h iio: Allow to read mount matrix from ACPI 2019-04-04 20:19:46 +01:00
kfifo_buf.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
machine.h iio: Add macro to populate struct iio_map array 2017-12-02 13:28:21 +00:00
sw_device.h iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
sw_trigger.h iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
sysfs.h include: linux: iio: add IIO_ATTR_{RO, WO, RW} and IIO_DEVICE_ATTR_{RO, WO, RW} macros 2016-10-01 14:43:59 +01:00
trigger_consumer.h
trigger.h iio: add field identifier for @use_count kernel-doc 2018-01-08 16:03:43 +01:00
triggered_buffer.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
triggered_event.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
types.h IIO: inkern: API for manipulating channel attributes 2018-01-10 10:30:08 +00:00