linux/drivers/leds/leds-mlxreg.c

// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
//
// Copyright (c) 2018 Mellanox Technologies. All rights reserved.
// Copyright (c) 2018 Vadim Pasternak <[email protected]>

#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/platform_data/mlxreg.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

/* Codes for LEDs. */
#define MLXREG_LED_OFFSET_BLINK_3HZ
#define MLXREG_LED_OFFSET_BLINK_6HZ
#define MLXREG_LED_IS_OFF
#define MLXREG_LED_RED_SOLID
#define MLXREG_LED_GREEN_SOLID
#define MLXREG_LED_AMBER_SOLID
#define MLXREG_LED_BLINK_3HZ
#define MLXREG_LED_BLINK_6HZ
#define MLXREG_LED_CAPABILITY_CLEAR

/**
 * struct mlxreg_led_data - led control data:
 *
 * @data: led configuration data;
 * @led_cdev: led class data;
 * @base_color: base led color (other colors have constant offset from base);
 * @data_parent: pointer to private device control data of parent;
 * @led_cdev_name: class device name
 */
struct mlxreg_led_data {};

#define cdev_to_priv(c)

/**
 * struct mlxreg_led_priv_data - platform private data:
 *
 * @pdev: platform device;
 * @pdata: platform data;
 * @access_lock: mutex for attribute IO access;
 */
struct mlxreg_led_priv_data {};

static int
mlxreg_led_store_hw(struct mlxreg_led_data *led_data, u8 vset)
{}

static enum led_brightness
mlxreg_led_get_hw(struct mlxreg_led_data *led_data)
{}

static int
mlxreg_led_brightness_set(struct led_classdev *cled, enum led_brightness value)
{}

static enum led_brightness
mlxreg_led_brightness_get(struct led_classdev *cled)
{}

static int
mlxreg_led_blink_set(struct led_classdev *cled, unsigned long *delay_on,
		     unsigned long *delay_off)
{}

static int mlxreg_led_config(struct mlxreg_led_priv_data *priv)
{}

static int mlxreg_led_probe(struct platform_device *pdev)
{}

static struct platform_driver mlxreg_led_driver =;

module_platform_driver();

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