mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Thomas Gleixner](/assets/img/avatar_default.png)
Based on 1 normalized pattern(s): license terms gnu general public license gpl version 2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 161 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528170027.447718015@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
29 lines
692 B
C
29 lines
692 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) STMicroelectronics 2017
|
|
*
|
|
* Author: Fabrice Gasnier <fabrice.gasnier@st.com>
|
|
*/
|
|
|
|
#ifndef _STM32_LPTIM_TRIGGER_H_
|
|
#define _STM32_LPTIM_TRIGGER_H_
|
|
|
|
#include <linux/iio/iio.h>
|
|
#include <linux/iio/trigger.h>
|
|
|
|
#define LPTIM1_OUT "lptim1_out"
|
|
#define LPTIM2_OUT "lptim2_out"
|
|
#define LPTIM3_OUT "lptim3_out"
|
|
|
|
#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
|
|
bool is_stm32_lptim_trigger(struct iio_trigger *trig);
|
|
#else
|
|
static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
|
|
{
|
|
#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
|
|
pr_warn_once("stm32 lptim_trigger not linked in\n");
|
|
#endif
|
|
return false;
|
|
}
|
|
#endif
|
|
#endif
|