#include <linux/leds.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#define A500_EC_LED_DELAY_USEC …
enum { … };
struct a500_led { … };
static const struct reg_sequence a500_ec_leds_reset_seq[] = …;
static const struct reg_sequence a500_ec_white_led_enable_seq[] = …;
static const struct reg_sequence a500_ec_orange_led_enable_seq[] = …;
static int a500_ec_led_brightness_set(struct led_classdev *led_cdev,
enum led_brightness value)
{ … }
static int a500_ec_leds_probe(struct platform_device *pdev)
{ … }
static struct platform_driver a500_ec_leds_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;
MODULE_LICENSE(…) …;