Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) STMicroelectronics 2017
0004  *
0005  * Author: Fabrice Gasnier <fabrice.gasnier@st.com>
0006  */
0007 
0008 #ifndef _STM32_LPTIM_TRIGGER_H_
0009 #define _STM32_LPTIM_TRIGGER_H_
0010 
0011 #include <linux/iio/iio.h>
0012 #include <linux/iio/trigger.h>
0013 
0014 #define LPTIM1_OUT  "lptim1_out"
0015 #define LPTIM2_OUT  "lptim2_out"
0016 #define LPTIM3_OUT  "lptim3_out"
0017 
0018 #if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
0019 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
0020 #else
0021 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
0022 {
0023 #if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
0024     pr_warn_once("stm32 lptim_trigger not linked in\n");
0025 #endif
0026     return false;
0027 }
0028 #endif
0029 #endif