linux/drivers/leds/led-class-flash.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * LED Flash class interface
 *
 * Copyright (C) 2015 Samsung Electronics Co., Ltd.
 * Author: Jacek Anaszewski <[email protected]>
 */

#include <linux/device.h>
#include <linux/init.h>
#include <linux/led-class-flash.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/slab.h>
#include "leds.h"

#define has_flash_op(fled_cdev, op)

#define call_flash_op(fled_cdev, op, args...)

static const char * const led_flash_fault_names[] =;

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

static ssize_t flash_brightness_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RW(flash_brightness);

static ssize_t max_flash_brightness_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RO(max_flash_brightness);

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

static ssize_t flash_strobe_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RW(flash_strobe);

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

static ssize_t flash_timeout_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RW(flash_timeout);

static ssize_t max_flash_timeout_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RO(max_flash_timeout);

static ssize_t flash_fault_show(struct device *dev,
		struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RO(flash_fault);

static struct attribute *led_flash_strobe_attrs[] =;

static struct attribute *led_flash_timeout_attrs[] =;

static struct attribute *led_flash_brightness_attrs[] =;

static struct attribute *led_flash_fault_attrs[] =;

static const struct attribute_group led_flash_strobe_group =;

static const struct attribute_group led_flash_timeout_group =;

static const struct attribute_group led_flash_brightness_group =;

static const struct attribute_group led_flash_fault_group =;

static void led_flash_resume(struct led_classdev *led_cdev)
{}

static void led_flash_init_sysfs_groups(struct led_classdev_flash *fled_cdev)
{}

int led_classdev_flash_register_ext(struct device *parent,
				    struct led_classdev_flash *fled_cdev,
				    struct led_init_data *init_data)
{}
EXPORT_SYMBOL_GPL();

void led_classdev_flash_unregister(struct led_classdev_flash *fled_cdev)
{}
EXPORT_SYMBOL_GPL();

static void devm_led_classdev_flash_release(struct device *dev, void *res)
{}

int devm_led_classdev_flash_register_ext(struct device *parent,
				     struct led_classdev_flash *fled_cdev,
				     struct led_init_data *init_data)
{}
EXPORT_SYMBOL_GPL();

static int devm_led_classdev_flash_match(struct device *dev,
					      void *res, void *data)
{}

void devm_led_classdev_flash_unregister(struct device *dev,
					struct led_classdev_flash *fled_cdev)
{}
EXPORT_SYMBOL_GPL();

static void led_clamp_align(struct led_flash_setting *s)
{}

int led_set_flash_timeout(struct led_classdev_flash *fled_cdev, u32 timeout)
{}
EXPORT_SYMBOL_GPL();

int led_get_flash_fault(struct led_classdev_flash *fled_cdev, u32 *fault)
{}
EXPORT_SYMBOL_GPL();

int led_set_flash_brightness(struct led_classdev_flash *fled_cdev,
				u32 brightness)
{}
EXPORT_SYMBOL_GPL();

int led_update_flash_brightness(struct led_classdev_flash *fled_cdev)
{}
EXPORT_SYMBOL_GPL();

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