linux/drivers/leds/leds-syscon.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Generic Syscon LEDs Driver
 *
 * Copyright (c) 2014, Linaro Limited
 * Author: Linus Walleij <[email protected]>
 */
#include <linux/io.h>
#include <linux/init.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/stat.h>
#include <linux/slab.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
#include <linux/leds.h>

/**
 * struct syscon_led - state container for syscon based LEDs
 * @cdev: LED class device for this LED
 * @map: regmap to access the syscon device backing this LED
 * @offset: the offset into the syscon regmap for the LED register
 * @mask: the bit in the register corresponding to the LED
 * @state: current state of the LED
 */
struct syscon_led {};

static void syscon_led_set(struct led_classdev *led_cdev,
	enum led_brightness value)
{}

static int syscon_led_probe(struct platform_device *pdev)
{}

static const struct of_device_id of_syscon_leds_match[] =;

static struct platform_driver syscon_led_driver =;
builtin_platform_driver();