David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) STMicroelectronics 2017 |
| 4 | * |
| 5 | * Author: Fabrice Gasnier <fabrice.gasnier@st.com> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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 |