linux/drivers/leds/led-core.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * LED Class Core
 *
 * Copyright 2005-2006 Openedhand Ltd.
 *
 * Author: Richard Purdie <[email protected]>
 */

#include <linux/kernel.h>
#include <linux/led-class-multicolor.h>
#include <linux/leds.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/property.h>
#include <linux/rwsem.h>
#include <linux/slab.h>
#include <uapi/linux/uleds.h>
#include "leds.h"

DECLARE_RWSEM();
EXPORT_SYMBOL_GPL();

LIST_HEAD();
EXPORT_SYMBOL_GPL();

static const char * const led_colors[LED_COLOR_ID_MAX] =;

static int __led_set_brightness(struct led_classdev *led_cdev, unsigned int value)
{}

static int __led_set_brightness_blocking(struct led_classdev *led_cdev, unsigned int value)
{}

static void led_timer_function(struct timer_list *t)
{}

static void set_brightness_delayed_set_brightness(struct led_classdev *led_cdev,
						  unsigned int value)
{}

static void set_brightness_delayed(struct work_struct *ws)
{}

static void led_set_software_blink(struct led_classdev *led_cdev,
				   unsigned long delay_on,
				   unsigned long delay_off)
{}


static void led_blink_setup(struct led_classdev *led_cdev,
		     unsigned long *delay_on,
		     unsigned long *delay_off)
{}

void led_init_core(struct led_classdev *led_cdev)
{}
EXPORT_SYMBOL_GPL();

void led_blink_set(struct led_classdev *led_cdev,
		   unsigned long *delay_on,
		   unsigned long *delay_off)
{}
EXPORT_SYMBOL_GPL();

void led_blink_set_oneshot(struct led_classdev *led_cdev,
			   unsigned long *delay_on,
			   unsigned long *delay_off,
			   int invert)
{}
EXPORT_SYMBOL_GPL();

void led_blink_set_nosleep(struct led_classdev *led_cdev, unsigned long delay_on,
			   unsigned long delay_off)
{}
EXPORT_SYMBOL_GPL();

void led_stop_software_blink(struct led_classdev *led_cdev)
{}
EXPORT_SYMBOL_GPL();

void led_set_brightness(struct led_classdev *led_cdev, unsigned int brightness)
{}
EXPORT_SYMBOL_GPL();

void led_set_brightness_nopm(struct led_classdev *led_cdev, unsigned int value)
{}
EXPORT_SYMBOL_GPL();

void led_set_brightness_nosleep(struct led_classdev *led_cdev, unsigned int value)
{}
EXPORT_SYMBOL_GPL();

int led_set_brightness_sync(struct led_classdev *led_cdev, unsigned int value)
{}
EXPORT_SYMBOL_GPL();

/*
 * This is a led-core function because just like led_set_brightness()
 * it is used in the kernel by e.g. triggers.
 */
void led_mc_set_brightness(struct led_classdev *led_cdev,
			   unsigned int *intensity_value, unsigned int num_colors,
			   unsigned int brightness)
{}
EXPORT_SYMBOL_GPL();

int led_update_brightness(struct led_classdev *led_cdev)
{}
EXPORT_SYMBOL_GPL();

u32 *led_get_default_pattern(struct led_classdev *led_cdev, unsigned int *size)
{}
EXPORT_SYMBOL_GPL();

/* Caller must ensure led_cdev->led_access held */
void led_sysfs_disable(struct led_classdev *led_cdev)
{}
EXPORT_SYMBOL_GPL();

/* Caller must ensure led_cdev->led_access held */
void led_sysfs_enable(struct led_classdev *led_cdev)
{}
EXPORT_SYMBOL_GPL();

static void led_parse_fwnode_props(struct device *dev,
				   struct fwnode_handle *fwnode,
				   struct led_properties *props)
{}

int led_compose_name(struct device *dev, struct led_init_data *init_data,
		     char *led_classdev_name)
{}
EXPORT_SYMBOL_GPL();

const char *led_get_color_name(u8 color_id)
{}
EXPORT_SYMBOL_GPL();

enum led_default_state led_init_default_state_get(struct fwnode_handle *fwnode)
{}
EXPORT_SYMBOL_GPL();