#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/i2c.h>
#define BMC_CMD_LED_GET_SET …
#define BMC_BIT_LED_STATUS …
#define BMC_BIT_LED_HOTSWAP …
#define BMC_BIT_LED_USER1 …
#define BMC_BIT_LED_USER2 …
struct menf21bmc_led { … };
static struct menf21bmc_led leds[] = …;
static DEFINE_MUTEX(led_lock);
static void
menf21bmc_led_set(struct led_classdev *led_cdev, enum led_brightness value)
{ … }
static int menf21bmc_led_probe(struct platform_device *pdev)
{ … }
static struct platform_driver menf21bmc_led = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;