#include <linux/io.h>
#include <linux/init.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/stat.h>
#include <linux/slab.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
#include <linux/leds.h>
struct syscon_led { … };
static void syscon_led_set(struct led_classdev *led_cdev,
enum led_brightness value)
{ … }
static int syscon_led_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id of_syscon_leds_match[] = …;
static struct platform_driver syscon_led_driver = …;
builtin_platform_driver(…) …;