linux/drivers/iio/trigger/stm32-lptimer-trigger.c

// SPDX-License-Identifier: GPL-2.0
/*
 * STM32 Low-Power Timer Trigger driver
 *
 * Copyright (C) STMicroelectronics 2017
 *
 * Author: Fabrice Gasnier <[email protected]>.
 *
 * Inspired by Benjamin Gaignard's stm32-timer-trigger driver
 */

#include <linux/iio/timer/stm32-lptim-trigger.h>
#include <linux/mfd/stm32-lptimer.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>

/* List Low-Power Timer triggers */
static const char * const stm32_lptim_triggers[] =;

struct stm32_lptim_trigger {};

static int stm32_lptim_validate_device(struct iio_trigger *trig,
				       struct iio_dev *indio_dev)
{}

static const struct iio_trigger_ops stm32_lptim_trigger_ops =;

/**
 * is_stm32_lptim_trigger
 * @trig: trigger to be checked
 *
 * return true if the trigger is a valid STM32 IIO Low-Power Timer Trigger
 * either return false
 */
bool is_stm32_lptim_trigger(struct iio_trigger *trig)
{}
EXPORT_SYMBOL();

static int stm32_lptim_setup_trig(struct stm32_lptim_trigger *priv)
{}

static int stm32_lptim_trigger_probe(struct platform_device *pdev)
{}

static const struct of_device_id stm32_lptim_trig_of_match[] =;
MODULE_DEVICE_TABLE(of, stm32_lptim_trig_of_match);

static struct platform_driver stm32_lptim_trigger_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_ALIAS();
MODULE_DESCRIPTION();
MODULE_LICENSE();