#include <linux/leds.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>
struct dac124s085_led { … };
struct dac124s085 { … };
#define REG_WRITE …
#define REG_WRITE_UPDATE …
#define ALL_WRITE_UPDATE …
#define POWER_DOWN_OUTPUT …
static int dac124s085_set_brightness(struct led_classdev *ldev,
enum led_brightness brightness)
{ … }
static int dac124s085_probe(struct spi_device *spi)
{ … }
static void dac124s085_remove(struct spi_device *spi)
{ … }
static struct spi_driver dac124s085_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;