#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>
#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 { … };
#define cdev_to_priv(c) …
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(…) …;