linux/drivers/leds/trigger/ledtrig-oneshot.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * One-shot LED Trigger
 *
 * Copyright 2012, Fabio Baltieri <[email protected]>
 *
 * Based on ledtrig-timer.c by Richard Purdie <[email protected]>
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/ctype.h>
#include <linux/slab.h>
#include <linux/leds.h>
#include "../leds.h"

#define DEFAULT_DELAY

struct oneshot_trig_data {};

static ssize_t led_shot(struct device *dev,
		struct device_attribute *attr, const char *buf, size_t size)
{}
static ssize_t led_invert_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}

static ssize_t led_invert_store(struct device *dev,
		struct device_attribute *attr, const char *buf, size_t size)
{}

static ssize_t led_delay_on_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}

static ssize_t led_delay_on_store(struct device *dev,
		struct device_attribute *attr, const char *buf, size_t size)
{}

static ssize_t led_delay_off_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}

static ssize_t led_delay_off_store(struct device *dev,
		struct device_attribute *attr, const char *buf, size_t size)
{}

static DEVICE_ATTR(delay_on, 0644, led_delay_on_show, led_delay_on_store);
static DEVICE_ATTR(delay_off, 0644, led_delay_off_show, led_delay_off_store);
static DEVICE_ATTR(invert, 0644, led_invert_show, led_invert_store);
static DEVICE_ATTR(shot, 0200, NULL, led_shot);

static struct attribute *oneshot_trig_attrs[] =;
ATTRIBUTE_GROUPS();

static void pattern_init(struct led_classdev *led_cdev)
{}

static int oneshot_trig_activate(struct led_classdev *led_cdev)
{}

static void oneshot_trig_deactivate(struct led_classdev *led_cdev)
{}

static struct led_trigger oneshot_led_trigger =;
module_led_trigger();

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