11 #include <linux/kernel.h>
13 #include <linux/module.h>
14 #include <linux/device.h>
17 #include <mach/hardware.h>
20 static void locomoled_brightness_set(
struct led_classdev *led_cdev,
34 static void locomoled_brightness_set0(
struct led_classdev *led_cdev,
37 locomoled_brightness_set(led_cdev, value,
LOCOMO_LPT0);
40 static void locomoled_brightness_set1(
struct led_classdev *led_cdev,
43 locomoled_brightness_set(led_cdev, value,
LOCOMO_LPT1);
47 .name =
"locomo:amber:charge",
48 .default_trigger =
"main-battery-charging",
49 .brightness_set = locomoled_brightness_set0,
53 .name =
"locomo:green:mail",
54 .default_trigger =
"nand-disk",
55 .brightness_set = locomoled_brightness_set1,
58 static int locomoled_probe(
struct locomo_dev *ldev)
73 static int locomoled_remove(
struct locomo_dev *
dev)
85 .probe = locomoled_probe,
86 .remove = locomoled_remove,
89 static int __init locomoled_init(
void)