#include <linux/device.h>
#include <linux/leds.h>
#include <linux/led-class-multicolor.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/platform_data/cros_ec_commands.h>
#include <linux/platform_data/cros_ec_proto.h>
static const char * const cros_ec_led_functions[] = …;
static_assert(…);
static const int cros_ec_led_to_linux_id[] = …;
static_assert(…);
static const int cros_ec_linux_to_ec_id[] = …;
struct cros_ec_led_priv { … };
static inline struct cros_ec_led_priv *cros_ec_led_cdev_to_priv(struct led_classdev *led_cdev)
{ … }
cros_ec_led_cmd_data __packed;
static int cros_ec_led_send_cmd(struct cros_ec_device *cros_ec,
union cros_ec_led_cmd_data *arg)
{ … }
static int cros_ec_led_trigger_activate(struct led_classdev *led_cdev)
{ … }
static struct led_hw_trigger_type cros_ec_led_trigger_type;
static struct led_trigger cros_ec_led_trigger = …;
static int cros_ec_led_brightness_set_blocking(struct led_classdev *led_cdev,
enum led_brightness brightness)
{ … }
static int cros_ec_led_count_subleds(struct device *dev,
struct ec_response_led_control *resp,
unsigned int *max_brightness)
{ … }
static const char *cros_ec_led_get_color_name(struct led_classdev_mc *led_mc_cdev)
{ … }
static int cros_ec_led_probe_one(struct device *dev, struct cros_ec_device *cros_ec,
enum ec_led_id id)
{ … }
static int cros_ec_led_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id cros_ec_led_id[] = …;
static struct platform_driver cros_ec_led_driver = …;
module_platform_driver(…) …;
MODULE_DEVICE_TABLE(platform, cros_ec_led_id);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;