This source file includes following definitions.
- is_stm32_lptim_trigger
1
2
3
4
5
6
7
8 #ifndef _STM32_LPTIM_TRIGGER_H_
9 #define _STM32_LPTIM_TRIGGER_H_
10
11 #include <linux/iio/iio.h>
12 #include <linux/iio/trigger.h>
13
14 #define LPTIM1_OUT "lptim1_out"
15 #define LPTIM2_OUT "lptim2_out"
16 #define LPTIM3_OUT "lptim3_out"
17
18 #if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
19 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
20 #else
21 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
22 {
23 #if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
24 pr_warn_once("stm32 lptim_trigger not linked in\n");
25 #endif
26 return false;
27 }
28 #endif
29 #endif