linux/drivers/leds/leds-menf21bmc.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  MEN 14F021P00 Board Management Controller (BMC) LEDs Driver.
 *
 *  This is the core LED driver of the MEN 14F021P00 BMC.
 *  There are four LEDs available which can be switched on and off.
 *  STATUS LED, HOT SWAP LED, USER LED 1, USER LED 2
 *
 *  Copyright (C) 2014 MEN Mikro Elektronik Nuernberg GmbH
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/i2c.h>

#define BMC_CMD_LED_GET_SET
#define BMC_BIT_LED_STATUS
#define BMC_BIT_LED_HOTSWAP
#define BMC_BIT_LED_USER1
#define BMC_BIT_LED_USER2

struct menf21bmc_led {};

static struct menf21bmc_led leds[] =;

static DEFINE_MUTEX(led_lock);

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

static int menf21bmc_led_probe(struct platform_device *pdev)
{}

static struct platform_driver menf21bmc_led =;

module_platform_driver();

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