#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/platform_data/x86/simatic-ipc-base.h>
#include <linux/platform_device.h>
#include <linux/sizes.h>
#include <linux/spinlock.h>
#define SIMATIC_IPC_LED_PORT_BASE …
struct simatic_ipc_led { … };
static struct simatic_ipc_led simatic_ipc_leds_io[] = …;
static struct resource simatic_ipc_led_io_res = …;
static DEFINE_SPINLOCK(reg_lock);
static inline struct simatic_ipc_led *cdev_to_led(struct led_classdev *led_cd)
{ … }
static void simatic_ipc_led_set_io(struct led_classdev *led_cd,
enum led_brightness brightness)
{ … }
static enum led_brightness simatic_ipc_led_get_io(struct led_classdev *led_cd)
{ … }
static int simatic_ipc_leds_probe(struct platform_device *pdev)
{ … }
static struct platform_driver simatic_ipc_led_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;
MODULE_AUTHOR(…) …;