linux/drivers/leds/leds-nic78bx.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2016 National Instruments Corp.
 */

#include <linux/acpi.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>

#define NIC78BX_USER1_LED_MASK
#define NIC78BX_USER1_GREEN_LED
#define NIC78BX_USER1_YELLOW_LED

#define NIC78BX_USER2_LED_MASK
#define NIC78BX_USER2_GREEN_LED
#define NIC78BX_USER2_YELLOW_LED

#define NIC78BX_LOCK_REG_OFFSET
#define NIC78BX_LOCK_VALUE
#define NIC78BX_UNLOCK_VALUE

#define NIC78BX_USER_LED_IO_SIZE

struct nic78bx_led_data {};

struct nic78bx_led {};

static inline struct nic78bx_led *to_nic78bx_led(struct led_classdev *cdev)
{}

static void nic78bx_brightness_set(struct led_classdev *cdev,
				  enum led_brightness brightness)
{}

static enum led_brightness nic78bx_brightness_get(struct led_classdev *cdev)
{}

static struct nic78bx_led nic78bx_leds[] =;

static void lock_led_reg_action(void *data)
{}

static int nic78bx_probe(struct platform_device *pdev)
{}

static const struct acpi_device_id led_device_ids[] =;
MODULE_DEVICE_TABLE(acpi, led_device_ids);

static struct platform_driver led_driver =;

module_platform_driver();

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