#include <linux/module.h>
#include <linux/leds.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
enum ec_index { … };
enum { … };
struct ariel_led { … };
#define led_cdev_to_ariel_led(c) …
static enum led_brightness ariel_led_get(struct led_classdev *led_cdev)
{ … }
static void ariel_led_set(struct led_classdev *led_cdev,
enum led_brightness brightness)
{ … }
static int ariel_blink_set(struct led_classdev *led_cdev,
unsigned long *delay_on, unsigned long *delay_off)
{ … }
#define NLEDS …
static int ariel_led_probe(struct platform_device *pdev)
{ … }
static struct platform_driver ariel_led_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;