1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (C) STMicroelectronics 2017 4 * 5 * Author: Fabrice Gasnier <fabrice.gasnier@st.com> 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 30
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.