| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) STMicroelectronics 2016 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Author: Benjamin Gaignard <benjamin.gaignard@st.com> |
|---|
| 5 | | - * |
|---|
| 6 | | - * License terms: GNU General Public License (GPL), version 2 |
|---|
| 7 | 6 | */ |
|---|
| 8 | 7 | |
|---|
| 9 | 8 | #ifndef _STM32_TIMER_TRIGGER_H_ |
|---|
| .. | .. |
|---|
| 73 | 72 | |
|---|
| 74 | 73 | #define TIM17_OC1 "tim17_oc1" |
|---|
| 75 | 74 | |
|---|
| 75 | +#if IS_REACHABLE(CONFIG_IIO_STM32_TIMER_TRIGGER) |
|---|
| 76 | 76 | bool is_stm32_timer_trigger(struct iio_trigger *trig); |
|---|
| 77 | | - |
|---|
| 77 | +#else |
|---|
| 78 | +static inline bool is_stm32_timer_trigger(struct iio_trigger *trig) |
|---|
| 79 | +{ |
|---|
| 80 | +#if IS_ENABLED(CONFIG_IIO_STM32_TIMER_TRIGGER) |
|---|
| 81 | + pr_warn_once("stm32-timer-trigger not linked in\n"); |
|---|
| 82 | +#endif |
|---|
| 83 | + return false; |
|---|
| 84 | +} |
|---|
| 85 | +#endif |
|---|
| 78 | 86 | #endif |
|---|