#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/leds.h>
#include <linux/leds-regulator.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#define to_regulator_led(led_cdev) …
struct regulator_led { … };
static inline int led_regulator_get_max_brightness(struct regulator *supply)
{ … }
static int led_regulator_get_voltage(struct regulator *supply,
enum led_brightness brightness)
{ … }
static void regulator_led_enable(struct regulator_led *led)
{ … }
static void regulator_led_disable(struct regulator_led *led)
{ … }
static int regulator_led_brightness_set(struct led_classdev *led_cdev,
enum led_brightness value)
{ … }
static int regulator_led_probe(struct platform_device *pdev)
{ … }
static void regulator_led_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id regulator_led_of_match[] = …;
MODULE_DEVICE_TABLE(of, regulator_led_of_match);
static struct platform_driver regulator_led_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;